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