Skip to content

Commit

Permalink
Fixed Static Restore does not remove deletedAt and deletedBy @benny1hk
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanel committed Jun 9, 2023
1 parent c68a99f commit b8c3cea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,11 @@ module.exports = function (schema, options) {
}

var doc = {
deleted: false,
deletedAt: undefined,
deletedBy: undefined
$unset:{
deleted: true,
deletedAt: true,
deletedBy: true
}
};

return updateDocumentsByQuery(this, conditions, doc, callback);
Expand Down

0 comments on commit b8c3cea

Please sign in to comment.