redis-support #2

Merged
benjamyn merged 6 commits from redis-support into main 2023-10-15 04:45:30 -04:00
Showing only changes of commit 99d3764932 - Show all commits

View File

@ -65,9 +65,9 @@ async def register_user(user_id: str, client):
# lookup the user_id to get account info
user_info = await client.users_info(user=user_id)
new_user_data = {
"firstname": user_info["user"]["real_name"].split()[0],
"lastname": user_info["user"]["real_name"].split()[1],
"email": user_info["user"]["profile"]["email"],
"firstname": user_info["user"]["profile"]["first_name"],
"lastname": user_info["user"]["profile"]["last_name"],
"email": f"{user_info['user']['profile']['display_name_normalized']}@nexigen.digital",
"uuid": user_info["user"]["id"],
"profile": user_info["user"]["profile"]["image_512"],
}