From 8a16c8cc44c75bd34a656716b03349028c746b87 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sat, 14 Sep 2024 16:04:02 +0800 Subject: [PATCH] fix duplicate function name (#2437) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/sdk/doc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/apps/sdk/doc.py b/api/apps/sdk/doc.py index ecade3c3d..423470a23 100644 --- a/api/apps/sdk/doc.py +++ b/api/apps/sdk/doc.py @@ -508,10 +508,11 @@ def create(tenant_id): except Exception as e: return server_error_response(e) + @manager.route('/chunk/rm', methods=['POST']) @token_required @validate_request("chunk_ids", "doc_id") -def rm(): +def rm_chunk(): req = request.json try: if not ELASTICSEARCH.deleteByQuery(