Skip to content

Commit

Permalink
docs(middleware): remove archaic reference to node 7.6 in async/await…
Browse files Browse the repository at this point in the history
… example
  • Loading branch information
vkarpov15 committed Apr 9, 2024
1 parent f76c7e3 commit bac8fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ schema.pre('save', function() {
then(() => doMoreStuff());
});

// Or, in Node.js >= 7.6.0:
// Or, using async functions
schema.pre('save', async function() {
await doStuff();
await doMoreStuff();
Expand Down

0 comments on commit bac8fb0

Please sign in to comment.