Skip to content

Commit

Permalink
set deleted to false instead of unsetting when calling restore()
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 8, 2024
1 parent 3da988a commit 7f95506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,10 @@ module.exports = function (schema, options) {
}

var doc = {
$set:{
deleted: false
},
$unset:{
deleted: true,
deletedAt: true,
deletedBy: true
}
Expand Down

0 comments on commit 7f95506

Please sign in to comment.