mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 21:43:57 +01:00
Update users.py
made by_discord_id use strings
This commit is contained in:
parent
c741c03bae
commit
0337eed472
|
@ -52,7 +52,7 @@ async def by_id(user_id: str):
|
||||||
|
|
||||||
async def by_discord_id(discord_id: str):
|
async def by_discord_id(discord_id: str):
|
||||||
db = await _get_mongo('users')
|
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):
|
async def by_api_key(key: str):
|
||||||
db = await _get_mongo('users')
|
db = await _get_mongo('users')
|
||||||
|
|
Loading…
Reference in a new issue