no message
This commit is contained in:
parent
edad154826
commit
41b5be3056
1 changed files with 2 additions and 2 deletions
|
|
@ -482,7 +482,7 @@ export class ProfileEmployeeController extends Controller {
|
||||||
? `${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.startDate))} - ${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.endDate))}`
|
? `${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.startDate))} - ${Extension.ToThaiNumber(Extension.ToThaiFullDate2(item.endDate))}`
|
||||||
: "",
|
: "",
|
||||||
Level: item.educationLevel ?? "",
|
Level: item.educationLevel ?? "",
|
||||||
Degree: item.degree ? `${item.degree} ${item.field ? item.field : "" }`: "",
|
Degree: item.degree ? `${item.degree} ${item.field ? item.field : ""}` : "",
|
||||||
Field: item.field ?? "-",
|
Field: item.field ?? "-",
|
||||||
}));
|
}));
|
||||||
const salarys = await this.salaryRepository.find({
|
const salarys = await this.salaryRepository.find({
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue