Skip to content

Commit

Permalink
Merge branch 'feature/interactions-stored-temporary-into-database' of…
Browse files Browse the repository at this point in the history
… github.com:faceitFinder/faceitfinder-discordbot into feature/interactions-stored-temporary-into-database
  • Loading branch information
JustDams committed Nov 1, 2023
2 parents 290bcf5 + afd53e3 commit 45e020c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const getOne = (id) => {

const deleteOne = (id) => {
if (!ObjectId.isValid(id)) return
InteractionModel.deleteOne({ id }).exec()
InteractionModel.deleteOne({ _id: id }).exec()
}

module.exports = {
Expand All @@ -46,4 +46,4 @@ module.exports = {
updateOne,
updateOneWithJson,
deleteOne
}
}

0 comments on commit 45e020c

Please sign in to comment.