From 993bc7432fce2d954e9897ed85b54f22150bfc7e Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 28 Mar 2025 23:46:44 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=AB=99=E7=82=B9=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=97=B6=E5=BC=82=E6=AD=A5=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/controller/user/monitor/site-info-controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 })