mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-01 18:11:12 +01:00
fix: hook names getting objectified by winston
This commit is contained in:
@@ -99,7 +99,7 @@ module.exports = function (Plugins) {
|
|||||||
}
|
}
|
||||||
var hookList = Plugins.loadedHooks[hook];
|
var hookList = Plugins.loadedHooks[hook];
|
||||||
var hookType = hook.split(':')[0];
|
var hookType = hook.split(':')[0];
|
||||||
winston.verbose('[plugins/fireHook]', hook);
|
winston.verbose('[plugins/fireHook] ' + hook);
|
||||||
switch (hookType) {
|
switch (hookType) {
|
||||||
case 'filter':
|
case 'filter':
|
||||||
fireFilterHook(hook, hookList, params, done);
|
fireFilterHook(hook, hookList, params, done);
|
||||||
|
|||||||
Reference in New Issue
Block a user