From b456b5ca72f8c88674b6f4a7fc3d66521ca8474e Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 17 May 2024 11:09:04 +0700 Subject: [PATCH] fix --- src/controllers/ProfileEmployeeController.ts | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 0f668c3a..ccc77296 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -135,7 +135,27 @@ export class ProfileEmployeeController extends Controller { async updateProfile( @Request() request: RequestWithUser, @Path() id: string, - @Body() body: UpdateProfileEmployee, + @Body() + body: { + rank?: string | null; + prefix?: string | null; + firstName?: string | null; + lastName?: string | null; + birthDate?: Date | null; + salaryLevel?: number | null; + ethnicity?: string | null; + telephoneNumber?: string | null; + citizenId?: string; + religion: string | null; + posLevelId?: string | null; + posTypeId?: string | null; + nationality?: string | null; + gender?: string | null; + relationship?: string | null; + bloodGroup?: string | null; + email: string | null; + phone: string | null; + }, ) { const exists = !!body.citizenId &&