mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
@ -243,7 +243,7 @@ class DocumentService(CommonService):
|
|||||||
from api.db.services.task_service import TaskService
|
from api.db.services.task_service import TaskService
|
||||||
cls.clear_chunk_num(doc.id)
|
cls.clear_chunk_num(doc.id)
|
||||||
try:
|
try:
|
||||||
TaskService.filter_delete(Task.doc_id == doc.id)
|
TaskService.filter_delete([Task.doc_id == doc.id])
|
||||||
page = 0
|
page = 0
|
||||||
page_size = 1000
|
page_size = 1000
|
||||||
all_chunk_ids = []
|
all_chunk_ids = []
|
||||||
|
|||||||
Reference in New Issue
Block a user