mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 18:23:57 +01:00
Made role-querying use a string for id instead of an int
This commit is contained in:
parent
e589b87fb4
commit
c741c03bae
|
@ -35,7 +35,7 @@ async def update_roles(mongo):
|
|||
for role in level_role_names:
|
||||
if role in role_names:
|
||||
users.update_one(
|
||||
{'auth.discord': int(discord)},
|
||||
{'auth.discord': discord},
|
||||
{'$set': {'level': role}}
|
||||
)
|
||||
print(f'Updated {discord} to {role}')
|
||||
|
|
Loading…
Reference in a new issue