Skip to content

Commit 969c596

Browse files
xiaosl-cellshengliang xiao
and
shengliang xiao
authored
Fix: tenant_id spelling error. (#7331)
### What problem does this PR solve? In the generate_confirmation_token method, a spelling error was found with 'tenent_id'. The correct spelling should be 'tenant_id'. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): Co-authored-by: shengliang xiao <[email protected]>
1 parent 67b0870 commit 969c596

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/utils/api_utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ def get_error_data_result(
322322
return jsonify(response)
323323

324324

325-
def generate_confirmation_token(tenent_id):
326-
serializer = URLSafeTimedSerializer(tenent_id)
327-
return "ragflow-" + serializer.dumps(get_uuid(), salt=tenent_id)[2:34]
325+
def generate_confirmation_token(tenant_id):
326+
serializer = URLSafeTimedSerializer(tenant_id)
327+
return "ragflow-" + serializer.dumps(get_uuid(), salt=tenant_id)[2:34]
328328

329329

330330
def valid(permission, valid_permission, chunk_method, valid_chunk_method):

0 commit comments

Comments
 (0)