diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-18 15:56:42 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 60cfd4cb54138e7da76054aa163b33b3223b17ef (patch) | |
tree | 0eab3e236b8a3637c341ee4391db464f0abc95d9 /server/lib | |
parent | b4055e1c23eeefb0c8a85a77f312b2827d98f483 (diff) | |
download | PeerTube-60cfd4cb54138e7da76054aa163b33b3223b17ef.tar.gz PeerTube-60cfd4cb54138e7da76054aa163b33b3223b17ef.tar.zst PeerTube-60cfd4cb54138e7da76054aa163b33b3223b17ef.zip |
Add plugins check params tests
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/plugins/plugin-manager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts index 85ee3decb..e76dbb53e 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts | |||
@@ -143,6 +143,8 @@ export class PluginManager implements ServerHook { | |||
143 | throw new Error(`Unknown plugin ${npmName} to unregister`) | 143 | throw new Error(`Unknown plugin ${npmName} to unregister`) |
144 | } | 144 | } |
145 | 145 | ||
146 | delete this.registeredPlugins[plugin.npmName] | ||
147 | |||
146 | if (plugin.type === PluginType.PLUGIN) { | 148 | if (plugin.type === PluginType.PLUGIN) { |
147 | await plugin.unregister() | 149 | await plugin.unregister() |
148 | 150 | ||
@@ -154,8 +156,6 @@ export class PluginManager implements ServerHook { | |||
154 | logger.info('Regenerating registered plugin CSS to global file.') | 156 | logger.info('Regenerating registered plugin CSS to global file.') |
155 | await this.regeneratePluginGlobalCSS() | 157 | await this.regeneratePluginGlobalCSS() |
156 | } | 158 | } |
157 | |||
158 | delete this.registeredPlugins[plugin.npmName] | ||
159 | } | 159 | } |
160 | 160 | ||
161 | // ###################### Installation ###################### | 161 | // ###################### Installation ###################### |