revert: sync hooks

This commit is contained in:
Barış Soner Uşaklı
2021-04-28 15:00:43 -04:00
parent 33d91fdef8
commit 5fe97b9c2e
2 changed files with 12 additions and 2 deletions

View File

@@ -137,9 +137,14 @@ async function fireFilterHook(hook, hookList, params) {
payload => resolve(payload),
err => reject(err)
);
return;
}
if (returned) {
resolve(returned);
}
});
}
for (const hookObj of hookList) {
// eslint-disable-next-line
params = await fireMethod(hookObj, params);