-
-
Save Mattchewone/297caaea9eb40c9d0a03318d3dcd88b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run all hooks, not waiting for them to finish | |
const { combine } = require('feathers-hooks-common') | |
const { firstHook, secondHook } = require('./hooks') | |
module.exports = { | |
before: [ | |
context => { | |
combine( | |
firstHook(), | |
secondHook() | |
).call(this, context) | |
return context | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment