feat: pass modified params, only affects filter hooks

This commit is contained in:
Barış Soner Uşaklı
2021-03-08 18:08:47 -05:00
parent e787e6ea22
commit e74df53997

View File

@@ -99,7 +99,7 @@ Hooks.fire = async function (hook, params) {
const result = await hookTypeToMethod[hookType](hook, hookList, params);
if (hook !== 'action:plugins.firehook') {
Hooks.fire('action:plugins.firehook', { hook: hook, params: params });
Hooks.fire('action:plugins.firehook', { hook: hook, params: result || params });
}
if (result !== undefined) {
return result;