API: return user_id as int, not str

This commit is contained in:
freamon 2024-10-05 06:09:11 +00:00
parent 75d5c821a0
commit 41aa128b67

View file

@ -1296,7 +1296,7 @@ def authorise_api_user(auth, return_type='id'):
if return_type == 'model':
return user
else:
return user_id
return user.id
else:
raise Exception('incorrect_login')
except jwt.InvalidTokenError: