fix: [user] fix get user token #163

This commit is contained in:
Terrtia 2023-06-14 14:53:07 +02:00
parent b38819fdaa
commit ee76d20277
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -81,7 +81,7 @@ def get_user_passwd_hash(user_id):
return r_serv_db.hget('ail:users:all', user_id)
def get_user_token(user_id):
return r_serv_db.hget(f'ail:users:metadata:{user_id}', 'token')
return r_serv_db.hget(f'ail:user:metadata:{user_id}', 'token')
def get_token_user(token):
return r_serv_db.hget('ail:users:tokens', token)