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:
Kevin Hu
2025-08-12 15:55:04 +08:00
committed by GitHub
parent a0c2da1219
commit 96783aa82c

View File

@ -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 = []