diff --git a/megadl/helpers/database.py b/megadl/helpers/database.py index cb75aa0e..8c1787da 100644 --- a/megadl/helpers/database.py +++ b/megadl/helpers/database.py @@ -44,6 +44,7 @@ async def plus_fl_count( {"_id": user_id}, {"$inc": {"total_downloads": downloads}}, use_given=True, + upsert=False, ) elif uploads: await self.mongoc.update_async( @@ -51,6 +52,7 @@ async def plus_fl_count( {"_id": user_id}, {"$inc": {"total_uploads": uploads}}, use_given=True, + upsert=False, ) async def delete(self, user_id: int):