From 8ea5aabff4f2c3fbd71df8d4288ded30e833d52f Mon Sep 17 00:00:00 2001 From: sealday Date: Wed, 16 Oct 2024 12:12:03 +0800 Subject: [PATCH] fix: app upgrade should not overwrite the activation status of plugins (#1610) Co-authored-by: sealday Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1610 --- packages/presets/base/src/server/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/presets/base/src/server/index.ts b/packages/presets/base/src/server/index.ts index e930088e8..131412452 100644 --- a/packages/presets/base/src/server/index.ts +++ b/packages/presets/base/src/server/index.ts @@ -191,9 +191,8 @@ export class PresetTachyBase extends Plugin { } } const name = plugin[0]; - const enabled = plugin[2]; const packageJson = await this.getPackageJson(name); - plugins.push({ name, packageName: packageJson.name, version: packageJson.version, enabled }); + plugins.push({ name, packageName: packageJson.name, version: packageJson.version }); } return plugins; }