Actually wait for the code

This commit is contained in:
benjamyn committed 2023-10-15 19:53:11 +11:00
1 parent 92e339aae4
commit 6ef8c5177a
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ async def check_user_registration(user_id: str, client) -> bool:
async with r.pipeline(transaction=True) as pipe:
user_exists = await pipe.get(user_id).execute()
if user_exists[0] is None:
if check_user_exists(user_id) is True:
if await check_user_exists(user_id) is True:
await pipe.set(user_id, 1)
return True
else: