Skip to content

Commit

Permalink
Merge pull request #9425 from tphobe9312/patch-1
Browse files Browse the repository at this point in the history
`mongoose.model() --> mongoose.model()
  • Loading branch information
vkarpov15 committed Sep 17, 2020
2 parents d2abbf8 + e301787 commit ee19ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/middleware.pug
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ block content
```

This means that you must add all middleware and [plugins](/docs/plugins.html)
**before** calling [`mongoose.model()](/docs/api/mongoose.html#mongoose_Mongoose-model).
**before** calling [`mongoose.model()`](/docs/api/mongoose.html#mongoose_Mongoose-model).
The below script will print out "Hello from pre save":

```javascript
Expand Down

0 comments on commit ee19ea5

Please sign in to comment.