This commit is contained in:
AdisakKanthawilang 2024-05-20 11:12:23 +07:00
parent 884fe694d0
commit d052f67454

View file

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