fix edu
This commit is contained in:
parent
884fe694d0
commit
d052f67454
1 changed files with 3 additions and 1 deletions
|
|
@ -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, "ไม่พบข้อมูล");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue