Skip to content

Commit 8c37867

Browse files
authored
Update README.md
1 parent a314465 commit 8c37867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,11 @@ const hooks = {
328328
const awaitThenCall = async (hook, func) => func(await hook);
329329

330330
const beforeFindAllHooks = async hook => {
331-
return hooks.findAll.before.reduce( awaitThenCall );
331+
return hooks.findAll.before.reduce( awaitThenCall, hook );
332332
}
333333

334334
const afterFindAllHooks = async hook => {
335-
return hooks.findAll.after.reduce( awaitThenCall );
335+
return hooks.findAll.after.reduce( awaitThenCall, hook );
336336
}
337337

338338
export const findAll = async (query) => {

0 commit comments

Comments
 (0)