Fix: remove doc error. (#9413)
### What problem does this PR solve? Close #9407 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
a0c2da1219
commit
96783aa82c
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ class DocumentService(CommonService):
|
|||
from api.db.services.task_service import TaskService
|
||||
cls.clear_chunk_num(doc.id)
|
||||
try:
|
||||
TaskService.filter_delete(Task.doc_id == doc.id)
|
||||
TaskService.filter_delete([Task.doc_id == doc.id])
|
||||
page = 0
|
||||
page_size = 1000
|
||||
all_chunk_ids = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue