]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/plugins/plugin-manager.ts
Fix unregister default value
[github/Chocobozzz/PeerTube.git] / server / lib / plugins / plugin-manager.ts
index ca72753663541507cf2329912dedcbfaff934190..eab0b39780d9bcc8bc702028c086b3036c602555 100644 (file)
@@ -410,7 +410,7 @@ export class PluginManager implements ServerHook {
     npmName: string
     unregister?: boolean // default true
   }) {
-    const { npmName, unregister } = options
+    const { npmName, unregister = true } = options
 
     logger.info('Uninstalling plugin %s.', npmName)