From 7efe5261b840e5ce4b515d759e6a7e3d423c82a5 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 7 Nov 2024 13:48:30 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=99=E0=B8=B2=E0=B8=A1=E0=B8=AA=E0=B8=81=E0=B8=B8=E0=B8=A5?= =?UTF-8?q?=E0=B9=80=E0=B8=94=E0=B8=B4=E0=B8=A1=E0=B9=81=E0=B8=A1=E0=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileEditEmployeeController.ts | 6 +++--- src/entities/ProfileFamilyMother.ts | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/controllers/ProfileEditEmployeeController.ts b/src/controllers/ProfileEditEmployeeController.ts index 54dcad36..d8e5fe60 100644 --- a/src/controllers/ProfileEditEmployeeController.ts +++ b/src/controllers/ProfileEditEmployeeController.ts @@ -160,10 +160,10 @@ export class ProfileEditEmployeeController extends Controller { // return new HttpSuccess(getProfileEdit); // } - @Get("{profileEmployeeId}") - public async detailProfileEditEmp(@Path() profileEmployeeId: string) { + @Get("{id}") + public async detailProfileEditEmp(@Path() id: string) { const getProfileEdit = await this.profileEditRepository.findOne({ - where: { profileEmployeeId: profileEmployeeId }, + where: { id: id }, relations: ["profileEmployee"], }); if (!getProfileEdit) { diff --git a/src/entities/ProfileFamilyMother.ts b/src/entities/ProfileFamilyMother.ts index bbae0100..4188a364 100644 --- a/src/entities/ProfileFamilyMother.ts +++ b/src/entities/ProfileFamilyMother.ts @@ -89,6 +89,7 @@ export type CreateProfileFamilyMother = { motherPrefix: string | null; motherFirstName: string | null; motherLastName: string | null; + motherLastNameOld: string | null; motherCareer: string | null; motherCitizenId: string | null; motherLive: boolean | null; @@ -99,6 +100,7 @@ export type CreateProfileEmployeeFamilyMother = { motherPrefix: string | null; motherFirstName: string | null; motherLastName: string | null; + motherLastNameOld: string | null; motherCareer: string | null; motherCitizenId: string | null; motherLive: boolean | null; @@ -108,6 +110,7 @@ export type UpdateProfileFamilyMother = { motherPrefix: string | null; motherFirstName: string | null; motherLastName: string | null; + motherLastNameOld: string | null; motherCareer: string | null; motherCitizenId: string | null; motherLive: boolean | null;