mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -79,7 +79,7 @@ events.log = async function (data) {
|
||||
], data.timestamp, eid),
|
||||
db.setObject('event:' + eid, data),
|
||||
]);
|
||||
plugins.fireHook('action:events.log', { data: data });
|
||||
plugins.hooks.fire('action:events.log', { data: data });
|
||||
};
|
||||
|
||||
events.getEvents = async function (filter, start, stop, from, to) {
|
||||
|
||||
Reference in New Issue
Block a user