Skip to content

Commit

Permalink
docs(model): fix Model.events anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 14, 2019
1 parent 5f172b8 commit d1085b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/model.js
Expand Up @@ -171,13 +171,12 @@ Model.prototype.baseModelName;
* MyModel.events.on('error', err => console.log(err.message));
*
* // Prints a 'CastError' because of the above handler
* await MyModel.findOne({ _id: 'notanid' }).catch({} => {});
* await MyModel.findOne({ _id: 'notanid' }).catch(noop);
*
* @api public
* @fires error whenever any query or model function errors
* @property events
* @memberOf Model
* @static
* @static events
*/

Model.events;
Expand Down

0 comments on commit d1085b1

Please sign in to comment.