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 });