no message

This commit is contained in:
kittapath 2024-08-20 18:41:23 +07:00
parent edad154826
commit 41b5be3056

View file

@ -577,7 +577,7 @@ export class ProfileEmployeeController extends Controller {
*/ */
@Post() @Post()
async createProfile(@Body() body: CreateProfileEmployee, @Request() request: RequestWithUser) { async createProfile(@Body() body: CreateProfileEmployee, @Request() request: RequestWithUser) {
await new permission().PermissionCreate(request, "SYS_REGISTRY_EMP"); await new permission().PermissionCreate(request, "SYS_REGISTRY_TEMP");
if (await this.profileRepo.findOneBy({ citizenId: body.citizenId })) { if (await this.profileRepo.findOneBy({ citizenId: body.citizenId })) {
throw new HttpError( throw new HttpError(
HttpStatus.INTERNAL_SERVER_ERROR, HttpStatus.INTERNAL_SERVER_ERROR,