We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a314465 commit 8c37867Copy full SHA for 8c37867
README.md
@@ -328,11 +328,11 @@ const hooks = {
328
const awaitThenCall = async (hook, func) => func(await hook);
329
330
const beforeFindAllHooks = async hook => {
331
- return hooks.findAll.before.reduce( awaitThenCall );
+ return hooks.findAll.before.reduce( awaitThenCall, hook );
332
}
333
334
const afterFindAllHooks = async hook => {
335
- return hooks.findAll.after.reduce( awaitThenCall );
+ return hooks.findAll.after.reduce( awaitThenCall, hook );
336
337
338
export const findAll = async (query) => {
0 commit comments