From 969c596d4c989e0884e4f7e6cf29b761994d8c98 Mon Sep 17 00:00:00 2001 From: xiaosl-cell <54066646+xiaosl-cell@users.noreply.github.com> Date: Sun, 27 Apr 2025 17:34:13 +0800 Subject: [PATCH] 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 --- api/utils/api_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/utils/api_utils.py b/api/utils/api_utils.py index e39b9a1e7..d221cd534 100644 --- a/api/utils/api_utils.py +++ b/api/utils/api_utils.py @@ -322,9 +322,9 @@ def get_error_data_result( return jsonify(response) -def generate_confirmation_token(tenent_id): - serializer = URLSafeTimedSerializer(tenent_id) - return "ragflow-" + serializer.dumps(get_uuid(), salt=tenent_id)[2:34] +def generate_confirmation_token(tenant_id): + serializer = URLSafeTimedSerializer(tenant_id) + return "ragflow-" + serializer.dumps(get_uuid(), salt=tenant_id)[2:34] def valid(permission, valid_permission, chunk_method, valid_chunk_method):