From 5fb3d2f55cf5bd7b564b5eea7fc8744dac37a3cf Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Tue, 14 Oct 2025 15:49:05 +0800 Subject: [PATCH] Fix: update parser id for change_parser. (#10545) ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/document_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: