Browse Source

fix duplicate function name (#2437)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.11.0
Kevin Hu 1 year ago
parent
commit
8a16c8cc44
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      api/apps/sdk/doc.py

+ 2
- 1
api/apps/sdk/doc.py View File

@@ -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(

Loading…
Cancel
Save