diff --git a/api/apps/document_app.py b/api/apps/document_app.py index b80d59b09..a252db9ec 100644 --- a/api/apps/document_app.py +++ b/api/apps/document_app.py @@ -568,7 +568,7 @@ def change_parser(): def reset_doc(): nonlocal doc - e = DocumentService.update_by_id(doc.id, {"parser_id": req["parser_id"], "progress": 0, "progress_msg": "", "run": TaskStatus.UNSTART.value}) + e = DocumentService.update_by_id(doc.id, {"pipeline_id": req["pipeline_id"], "parser_id": req["parser_id"], "progress": 0, "progress_msg": "", "run": TaskStatus.UNSTART.value}) if not e: return get_data_error_result(message="Document not found!") if doc.token_num > 0: