From 6bcb854cdea8688a32240bc5719c7d139806e00b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2023 14:47:24 +0200 Subject: Fix unregister default value --- server/lib/plugins/plugin-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts index ca7275366..eab0b3978 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts @@ -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) -- cgit v1.2.3