mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
fix: 修复新部署的无法保存公共eab配置的bug
This commit is contained in:
@@ -54,6 +54,7 @@ export class PluginConfigService {
|
||||
sysSetting: JSON.stringify(sysSetting),
|
||||
type: 'builtIn',
|
||||
disabled: false,
|
||||
author: "certd",
|
||||
});
|
||||
} else {
|
||||
await this.pluginService.getRepository().update({ name }, { sysSetting: JSON.stringify(sysSetting) });
|
||||
|
||||
@@ -180,6 +180,12 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||
throw new Error(`插件${param.author}/${param.name}已存在`);
|
||||
}
|
||||
|
||||
if (param.type === "builtIn"){
|
||||
return await super.add({
|
||||
...param,
|
||||
});
|
||||
}
|
||||
|
||||
let plugin: any = {};
|
||||
if (param.pluginType === "access") {
|
||||
plugin = getDefaultAccessPlugin();
|
||||
|
||||
Reference in New Issue
Block a user