mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add plugins check params tests
This commit is contained in:
parent
b4055e1c23
commit
60cfd4cb54
4 changed files with 478 additions and 6 deletions
|
@ -143,6 +143,8 @@ export class PluginManager implements ServerHook {
|
|||
throw new Error(`Unknown plugin ${npmName} to unregister`)
|
||||
}
|
||||
|
||||
delete this.registeredPlugins[plugin.npmName]
|
||||
|
||||
if (plugin.type === PluginType.PLUGIN) {
|
||||
await plugin.unregister()
|
||||
|
||||
|
@ -154,8 +156,6 @@ export class PluginManager implements ServerHook {
|
|||
logger.info('Regenerating registered plugin CSS to global file.')
|
||||
await this.regeneratePluginGlobalCSS()
|
||||
}
|
||||
|
||||
delete this.registeredPlugins[plugin.npmName]
|
||||
}
|
||||
|
||||
// ###################### Installation ######################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue