mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = function (Categories) {
|
||||
await topics.purgePostsAndTopic(tid, uid);
|
||||
});
|
||||
await purgeCategory(cid);
|
||||
plugins.fireHook('action:category.delete', { cid: cid, uid: uid });
|
||||
plugins.hooks.fire('action:category.delete', { cid: cid, uid: uid });
|
||||
};
|
||||
|
||||
async function purgeCategory(cid) {
|
||||
|
||||
Reference in New Issue
Block a user