diff --git a/src/cli/reset.js b/src/cli/reset.js index 290f5bf7a2..7d4c7e9e2a 100644 --- a/src/cli/reset.js +++ b/src/cli/reset.js @@ -119,14 +119,10 @@ async function resetPlugin(pluginId) { const isActive = await db.isSortedSetMember('plugins:active', pluginId); if (isActive) { await db.sortedSetRemove('plugins:active', pluginId); - } - - await events.log({ - type: 'plugin-deactivate', - text: pluginId, - }); - - if (isActive) { + await events.log({ + type: 'plugin-deactivate', + text: pluginId, + }); winston.info('[reset] Plugin `%s` disabled', pluginId); } else { winston.warn('[reset] Plugin `%s` was not active on this forum', pluginId);