fix: 修复保存站点监控dns设置,偶尔无法保存成功的bug

This commit is contained in:
xiaojunnuo
2026-02-13 22:56:59 +08:00
parent b91548eef4
commit 8387fe0d5b
2 changed files with 7 additions and 7 deletions
@@ -68,7 +68,7 @@ export class UserSettingsController extends CrudController<UserSettingsService>
const entity = await this.service.getByKey(key, this.getUserId());
return this.ok(entity);
}
@Post("/grant/get", { summary: Constants.per.authOnly })
@Post("/grant/get", { summary: Constants.per.authOnly })
async grantSettingsGet() {
const userId = this.getUserId();
const setting = await this.service.getSetting<UserGrantSetting>(userId, UserGrantSetting);
@@ -88,6 +88,4 @@ export class UserSettingsController extends CrudController<UserSettingsService>
return this.ok({});
}
}