Skip to content

Commit 6cec77e

Browse files
Apply suggestions from code review
1 parent 03eab94 commit 6cec77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ Schema.prototype.queue = function(name, args) {
15771577
* // Runs when you call `doc.deleteOne()`
15781578
* });
15791579
*
1580-
* @param {String|RegExp|String[]} name The method name or regular expression to match method name
1580+
* @param {String|RegExp|String[]} methodName The method name or regular expression to match method name
15811581
* @param {Object} [options]
15821582
* @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()`.
15831583
* @param {Boolean} [options.query] If `name` is a hook for both document and query middleware, set to `true` to run on query middleware.
@@ -1633,7 +1633,7 @@ Schema.prototype.pre = function(name) {
16331633
* console.log('this fires after the post find hook');
16341634
* });
16351635
*
1636-
* @param {String|RegExp|String[]} name The method name or regular expression to match method name
1636+
* @param {String|RegExp|String[]} methodName The method name or regular expression to match method name
16371637
* @param {Object} [options]
16381638
* @param {Boolean} [options.document] If `name` is a hook for both document and query middleware, set to `true` to run on document middleware.
16391639
* @param {Boolean} [options.query] If `name` is a hook for both document and query middleware, set to `true` to run on query middleware.

0 commit comments

Comments
 (0)