diff --git a/utils/api.py b/utils/api.py index eb583c9..5f4c0ba 100644 --- a/utils/api.py +++ b/utils/api.py @@ -406,9 +406,7 @@ async def POST_send_loa( ns = schema del ns["_id"] - await self.bot.update_one({ - "_id": schema["_id"] - }, ns) + await self.bot.loas.update_by_id(schema) return 200