mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
chore: found some hooks that don't play well docgen
This commit is contained in:
@@ -65,7 +65,8 @@ module.exports = function (Plugins) {
|
||||
await db.sortedSetAdd('plugins:active', count, id);
|
||||
}
|
||||
meta.reloadRequired = true;
|
||||
Plugins.hooks.fire(isActive ? 'action:plugin.deactivate' : 'action:plugin.activate', { id: id });
|
||||
const hook = isActive ? 'deactivate' : 'activate';
|
||||
Plugins.hooks.fire(`action:plugin.${isActive}`, { id: id });
|
||||
return { id: id, active: !isActive };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user