mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 18:33:57 +01:00
Merge branch 'main' of https://github.com/Luna-OSS/nova-api
This commit is contained in:
commit
a3d51ed92e
|
@ -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