mirror of https://github.com/certd/certd
fix: 修复新部署的无法保存公共eab配置的bug
parent
4c196922fb
commit
d5dee75df3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue