fix report kp7/kk1

This commit is contained in:
Bright 2024-09-05 09:36:53 +07:00
parent 4056a2aa7f
commit ccd544b8d5
2 changed files with 29 additions and 5 deletions

View file

@ -126,6 +126,11 @@ export class ProfileController extends Controller {
"current_holders.orgChild4",
],
where: { id: id },
order: {
profileSalary: {
date: "DESC"
}
}
});
if (!profile) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");