hotfix variable name collision

This commit is contained in:
aj 2019-10-29 13:36:35 +00:00
parent ac80e4b735
commit 71fdb6620d

View File

@ -17,9 +17,9 @@ logger = logging.getLogger(__name__)
def refresh_token_database_callback(user): def refresh_token_database_callback(user):
if isinstance(user, DatabaseUser): if isinstance(user, DatabaseUser):
user = get_user(user.user_id) user_obj = get_user(user.user_id)
user.update_database({ user_obj.update_database({
'access_token': user.access_token, 'access_token': user.access_token,
'refresh_token': user.refresh_token, 'refresh_token': user.refresh_token,
'last_refreshed': user.last_refreshed, 'last_refreshed': user.last_refreshed,