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 = {