no message

This commit is contained in:
Bright 2024-06-17 14:18:06 +07:00
parent 61b56a0d62
commit 6860d52d13

View file

@ -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 });