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, "ไม่พบข้อมูล"); }