Skip to content

Commit

Permalink
docs: correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 authored Nov 8, 2020
1 parent b9553b6 commit 074bfc6
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 @@ -339,7 +339,7 @@ block content

// Only query middleware. This will get called when you do `Model.remove()`
// but not `doc.remove()`.
schema.pre('remove', { query: true, document: flse }, function() {
schema.pre('remove', { query: true, document: false }, function() {
console.log('Removing!');
});
```
Expand Down

0 comments on commit 074bfc6

Please sign in to comment.