mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-31 01:01:30 +08:00
Description: Fixed an issue where deleting an API token would fail because it was incorrectly using current_user.id as the tenant_id instead of querying the actual tenant ID from UserTenantService. Changes: Updated rm() endpoint to fetch the correct tenant_id from UserTenantService before deleting the API token Added proper error handling with try/except block Code style cleanup: consistent quote usage and formatting Related Issue: #3045 https://github.com/infiniflow/ragflow/issues/3045 Co-authored-by: Mardani, Ramin <ramin.mardani@sscinc.com>