From 6860d52d1395a7e6b5f377519d31e25cf1f3d788 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 17 Jun 2024 14:18:06 +0700 Subject: [PATCH] no message --- src/controllers/AuthRoleController.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/AuthRoleController.ts b/src/controllers/AuthRoleController.ts index 175c749e..20aa019d 100644 --- a/src/controllers/AuthRoleController.ts +++ b/src/controllers/AuthRoleController.ts @@ -79,11 +79,11 @@ export class AuthRoleController extends Controller { @Post("govoment") public async AddAuthRoleGovoment(@Request() req: RequestWithUser, @Body() body: CreateAddAuthRole) { - let _NULL_ : any = null; + let NULL_ : any = null; let getDetail if(body.authRoleId == "") { - body.authRoleId = _NULL_ + body.authRoleId = NULL_ } else { getDetail = await this.authRoleRepo.findOneBy({ id: body.authRoleId }); @@ -103,11 +103,11 @@ export class AuthRoleController extends Controller { @Post("employee") public async AddAuthRoleEmployee(@Request() req: RequestWithUser, @Body() body: CreateAddAuthRole) { - let _NULL_ : any = null; + let NULL_ : any = null; let getDetail if(body.authRoleId == "") { - body.authRoleId = _NULL_ + body.authRoleId = NULL_ } else { getDetail = await this.authRoleRepo.findOneBy({ id: body.authRoleId });