Skip to content

Commit

Permalink
Fixed #95
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperAnonymous committed Aug 19, 2023
1 parent af61d2b commit 29f82b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot/db/models/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def save(self, upsert=True):
else:
self.updated_at = datetime.utcnow()

return self.service.update_one({"_id": self._id}, {"$set": self.__dict__}, upsert=upsert)
return self.service.update_one({"_id": self._id}, self.__dict__, upsert=upsert)

def delete(self):
"""Delete the entity from the database."""
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
discord.py[speed]
discord.py[speed]<3.0.0
jsonpickle
pymongo[srv]
pymongo[srv]<5.0.0

# Linter
pylint
Expand Down

0 comments on commit 29f82b4

Please sign in to comment.