From e36322b4a759b577f6613b462e47340778ca2478 Mon Sep 17 00:00:00 2001 From: stijndcl Date: Wed, 3 Aug 2022 16:36:24 +0200 Subject: [PATCH] Add missing await --- database/crud/game_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/crud/game_stats.py b/database/crud/game_stats.py index 6410b50..5634b49 100644 --- a/database/crud/game_stats.py +++ b/database/crud/game_stats.py @@ -56,4 +56,4 @@ async def complete_wordle_game(database: MongoDatabase, user_id: int, win: bool, update["$set"]["wordle.current_streak"] = 0 collection = database[GameStats.collection()] - collection.update_one({"_id": stats.id}, update) + await collection.update_one({"_id": stats.id}, update)