Skip to content

Commit

Permalink
fix: payload mutated
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Oct 3, 2019
1 parent 7273965 commit 581816e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@nodepack/app-context/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ exports.callHook = hooks.callHook
exports.callHookWithPayload = async (hookName, ctx, payload, ...args) => {
ctx[hookName] = payload
await exports.callHook(hookName, ctx, payload, ...args)
return ctx[hookName]
return payload
}

0 comments on commit 581816e

Please sign in to comment.