Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Automattic/mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 8, 2022
2 parents 843c24c + d5ba7b6 commit 318f85b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/schema.js
Expand Up @@ -1577,7 +1577,7 @@ Schema.prototype.queue = function(name, args) {
* // Runs when you call `doc.deleteOne()`
* });
*
* @param {String|RegExp} The method name or regular expression to match method name
* @param {String|RegExp|String[]} methodName The method name or regular expression to match method name
* @param {Object} [options]
* @param {Boolean} [options.document] If `name` is a hook for both document and query middleware, set to `true` to run on document middleware. For example, set `options.document` to `true` to apply this hook to `Document#deleteOne()` rather than `Query#deleteOne()`.
* @param {Boolean} [options.query] If `name` is a hook for both document and query middleware, set to `true` to run on query middleware.
Expand Down Expand Up @@ -1633,7 +1633,7 @@ Schema.prototype.pre = function(name) {
* console.log('this fires after the post find hook');
* });
*
* @param {String|RegExp} The method name or regular expression to match method name
* @param {String|RegExp|String[]} methodName The method name or regular expression to match method name
* @param {Object} [options]
* @param {Boolean} [options.document] If `name` is a hook for both document and query middleware, set to `true` to run on document middleware.
* @param {Boolean} [options.query] If `name` is a hook for both document and query middleware, set to `true` to run on query middleware.
Expand Down

0 comments on commit 318f85b

Please sign in to comment.