fix script run retire this year

This commit is contained in:
Warunee Tamkoo 2025-10-03 17:14:20 +07:00
parent aadcec440e
commit decb2433de

View file

@ -8068,7 +8068,7 @@ export class OrganizationController extends Controller {
await Promise.all(
profileLeave.map(async (profile: any) => {
const dest_item = await this.profileSalaryRepository.findOne({
where: { profileId: profile.id },
where: { profileEmployeeId: profile.id },
order: { order: "DESC" },
});
const data: any = {