浏览代码

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)
tags/v0.20.2
Kevin Hu 2 个月前
父节点
当前提交
96783aa82c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/db/services/document_service.py

+ 1
- 1
api/db/services/document_service.py 查看文件

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

正在加载...
取消
保存