Update users.py

made by_discord_id use strings
This commit is contained in:
Leander 2023-08-09 11:06:55 +02:00 committed by GitHub
parent c741c03bae
commit 0337eed472
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ async def by_id(user_id: str):
async def by_discord_id(discord_id: str):
db = await _get_mongo('users')
return await db.find_one({'auth.discord': discord_id})
return await db.find_one({'auth.discord': str(int(discord_id))})
async def by_api_key(key: str):
db = await _get_mongo('users')