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),
|
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();
|
||||||
|
|
Loading…
Reference in New Issue