Skip to content

Commit

Permalink
Added the updateOne updateMany hooks. matteodelabre#60
Browse files Browse the repository at this point in the history
  • Loading branch information
knacharam-rythmos committed Nov 5, 2018
1 parent e78f7cc commit eb4dc28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,7 @@ module.exports = function (schema, options) {

schema.post('save', postHook);
schema.post('update', postHook);
schema.post('updateOne', postHook);
schema.post('updateMany', postHook);
schema.post('findOneAndUpdate', postHook);
};

0 comments on commit eb4dc28

Please sign in to comment.