mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
revert: sync hooks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user