From 41aa128b67ef804c56fed430e620a347227a2e95 Mon Sep 17 00:00:00 2001 From: freamon Date: Sat, 5 Oct 2024 06:09:11 +0000 Subject: [PATCH] API: return user_id as int, not str --- app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils.py b/app/utils.py index 0301a23b..d865b126 100644 --- a/app/utils.py +++ b/app/utils.py @@ -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: