diff --git a/index.js b/index.js index a2d9a8e..3ed9bff 100644 --- a/index.js +++ b/index.js @@ -309,8 +309,10 @@ module.exports = function (schema, options) { } var doc = { + $set:{ + deleted: false + }, $unset:{ - deleted: true, deletedAt: true, deletedBy: true }