mirror of
https://github.com/certd/certd.git
synced 2026-04-15 13:13:48 +08:00
perf: 密钥备份
This commit is contained in:
@@ -80,8 +80,8 @@ export class SysSettingsController extends CrudController<SysSettingsService> {
|
||||
@Post('/getSysSettings', { summary: 'sys:settings:edit' })
|
||||
async getSysSettings() {
|
||||
const publicSettings = await this.service.getPublicSettings();
|
||||
const privateSettings = await this.service.getPrivateSettings();
|
||||
privateSettings.removeSecret();
|
||||
let privateSettings = await this.service.getPrivateSettings();
|
||||
privateSettings = privateSettings.removeSecret();
|
||||
return this.ok({ public: publicSettings, private: privateSettings });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user