From 31efc0101525916db8e8fd14c719d99d484c7b8a Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 13 May 2025 15:41:49 +0700 Subject: [PATCH] fix --- src/controllers/OrganizationUnauthorizeController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/OrganizationUnauthorizeController.ts b/src/controllers/OrganizationUnauthorizeController.ts index c682cc3d..09fb6b79 100644 --- a/src/controllers/OrganizationUnauthorizeController.ts +++ b/src/controllers/OrganizationUnauthorizeController.ts @@ -523,7 +523,7 @@ export class OrganizationUnauthorizeController extends Controller { ? false : true, // isSpecial: isSpecial, - isGood: profileAssessment?.profileId.includes(item.current_holderId) ? true : false, + isGood: profileAssessment?.profileId?.includes(item.current_holderId) ? true : false, }; }); return new HttpSuccess({ data: formattedData, total: total }); @@ -974,7 +974,7 @@ export class OrganizationUnauthorizeController extends Controller { calculateRetireDate(item.birthDate).getFullYear() != body.year ? false : true, - isGood: profileAssessment?.profileId.includes(item.current_holderId) ? true : false, + isGood: profileAssessment?.profileEmployeeId?.includes(item.current_holderId) ? true : false, }; }); return new HttpSuccess({ data: formattedData, total: total });