diff --git a/packages/ui/certd-server/src/controller/user/monitor/site-info-controller.ts b/packages/ui/certd-server/src/controller/user/monitor/site-info-controller.ts index 4e1f7a07..90135e2c 100644 --- a/packages/ui/certd-server/src/controller/user/monitor/site-info-controller.ts +++ b/packages/ui/certd-server/src/controller/user/monitor/site-info-controller.ts @@ -57,7 +57,7 @@ export class SiteInfoController extends CrudController { async add(@Body(ALL) bean: any) { bean.userId = this.getUserId(); const res = await this.service.add(bean); - await this.service.check(res.id, false, 0); + this.service.check(res.id, true, 0); return this.ok(res); } @@ -66,7 +66,7 @@ export class SiteInfoController extends CrudController { await this.service.checkUserId(bean.id, this.getUserId()); delete bean.userId; await this.service.update(bean); - await this.service.check(bean.id, false, 0); + this.service.check(bean.id, true, 0); return this.ok(); } @Post('/info', { summary: Constants.per.authOnly })