From d052f6745452c8907f92c6f89c27854c65719313 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 20 May 2024 11:12:23 +0700 Subject: [PATCH] fix edu --- src/controllers/ProfileEducationsEmployeeController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/ProfileEducationsEmployeeController.ts b/src/controllers/ProfileEducationsEmployeeController.ts index 3443486c..83a38bc2 100644 --- a/src/controllers/ProfileEducationsEmployeeController.ts +++ b/src/controllers/ProfileEducationsEmployeeController.ts @@ -79,7 +79,9 @@ export class ProfileEducationsEmployeeController extends Controller { ], }) public async detailProfileEducation(@Path() profileEmployeeId: string) { - const getProfileEducation = await this.profileEducationRepo.findBy({ profileEmployeeId }); + const getProfileEducation = await this.profileEducationRepo.find({ + where: { profileEmployeeId: profileEmployeeId} + }); if (!getProfileEducation) { throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล"); }