Skip to content

Instantly share code, notes, and snippets.

@Mattchewone
Created March 9, 2018 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mattchewone/297caaea9eb40c9d0a03318d3dcd88b0 to your computer and use it in GitHub Desktop.
Save Mattchewone/297caaea9eb40c9d0a03318d3dcd88b0 to your computer and use it in GitHub Desktop.
// 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