diff --git a/api/db/users.py b/api/db/users.py index ffcbbd2..d5ef495 100644 --- a/api/db/users.py +++ b/api/db/users.py @@ -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')