diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 746511aa..727cab8a 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -482,7 +482,7 @@ export class ProfileEmployeeController extends Controller { ? `${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.startDate))} - ${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.endDate))}` : "", Level: item.educationLevel ?? "", - Degree: item.degree ? `${item.degree} ${item.field ? item.field : "" }`: "", + Degree: item.degree ? `${item.degree} ${item.field ? item.field : ""}` : "", Field: item.field ?? "-", })); const salarys = await this.salaryRepository.find({ @@ -577,7 +577,7 @@ export class ProfileEmployeeController extends Controller { */ @Post() 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 })) { throw new HttpError( HttpStatus.INTERNAL_SERVER_ERROR,