This commit is contained in:
AdisakKanthawilang 2024-05-17 11:22:31 +07:00
parent 5361184bfd
commit 9045b9ec90

View file

@ -135,27 +135,7 @@ export class ProfileEmployeeController extends Controller {
async updateProfile(
@Request() request: RequestWithUser,
@Path() id: string,
@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;
},
@Body() body: UpdateProfileEmployee,
) {
const exists =
!!body.citizenId &&