From 13f2b56d2b4c21bb63797baded16cb0f39ca1283 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 3 Jul 2024 09:18:17 +0700 Subject: [PATCH] no message --- 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 b5237f03..992d0238 100644 --- a/src/controllers/OrganizationUnauthorizeController.ts +++ b/src/controllers/OrganizationUnauthorizeController.ts @@ -194,7 +194,7 @@ export class OrganizationUnauthorizeController extends Controller { const latestProfileAssessment = item.current_holder.profileAssessments ? item.current_holder.profileAssessments.sort((a: any, b: any) => b.date - a.date)[0] : null; - const pointSumtotal = latestProfileAssessment ? latestProfileAssessment.pointSumTotal : null; + const pointSum = latestProfileAssessment ? latestProfileAssessment.pointSum : null; return { id: item.id, profileId: item.current_holder.id, @@ -223,7 +223,7 @@ export class OrganizationUnauthorizeController extends Controller { child3: item.orgChild3?.orgChild3Name ? item.orgChild3.orgChild3Name : null, child4Id: item.orgChild4Id, child4: item.orgChild4?.orgChild4Name ? item.orgChild4.orgChild4Name : null, - result: pointSumtotal, + result: pointSum, duration: null, isPunish: item.current_holder.profileDisciplines.filter(