From 0337eed47215408e865b255fcaa145c5a0155199 Mon Sep 17 00:00:00 2001 From: Leander Date: Wed, 9 Aug 2023 11:06:55 +0200 Subject: [PATCH] Update users.py made by_discord_id use strings --- api/db/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')