Skip to content

Commit

Permalink
Allow new and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome-E committed Sep 8, 2024
1 parent 6b73935 commit 11caefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const serverSettingsDB = {
put: async function (data) {
const id = data.key
delete data.key
await ServerSettings.findByIdAndUpdate(id, data)
await ServerSettings.findByIdAndUpdate(id, data, { new: true, upsert: true })
}
}

Expand Down

0 comments on commit 11caefb

Please sign in to comment.