From decb2433dedf3eab97992f334a3e6bd2ef4e318d Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 3 Oct 2025 17:14:20 +0700 Subject: [PATCH] fix script run retire this year --- src/controllers/OrganizationController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index 3cb257c7..72b590b9 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -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 = {