fix: 修复启动时报密钥备份不存在的问题

This commit is contained in:
xiaojunnuo
2026-05-11 22:31:11 +08:00
parent 5f88da1985
commit c966896522
3 changed files with 9 additions and 4 deletions
@@ -12,8 +12,7 @@ export class EncryptService {
@Inject()
sysSettingService: SysSettingsService;
@Init()
async init() {
async doInit() {
const secret: SysSecret = await this.sysSettingService.getSecret();
this.encryptor = new Encryptor(secret.encryptSecret);
}