Skip to content

Commit fdde7cb

Browse files
committed
Fix missing await in restart_command for mongo_check_user_database
1 parent 49b7799 commit fdde7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot_package/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def _do_restart(client: Client):
269269
async def restart_command(client: Client, message):
270270
user_id = str(message.from_user.id)
271271
userdict: dict = message.from_user
272-
mongo_check_user_database(str(user_id), userdict, message)
272+
await mongo_check_user_database(str(user_id), userdict, message)
273273
chat_id = message.chat.id
274274

275275
if user_id not in AUTH_USERS:

0 commit comments

Comments
 (0)