Skip to content

Commit

Permalink
Updated the file in response to the PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
codeshwar-preview[bot] authored Mar 16, 2024
1 parent ecee158 commit 294de4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ def find_one_and_delete(self, collection, query):
return self.db[collection].find_one_and_delete(query)

def update_one(self, collection, query, update):
return self.db[collection].update_one(query, {"$set": update})
return self.db[collection].update_one(query, {"$set": update}, upsert=True)

0 comments on commit 294de4d

Please sign in to comment.