no message

This commit is contained in:
Kittapath 2024-07-03 09:18:17 +07:00
parent 2446c755e6
commit 13f2b56d2b

View file

@ -194,7 +194,7 @@ export class OrganizationUnauthorizeController extends Controller {
const latestProfileAssessment = item.current_holder.profileAssessments const latestProfileAssessment = item.current_holder.profileAssessments
? item.current_holder.profileAssessments.sort((a: any, b: any) => b.date - a.date)[0] ? item.current_holder.profileAssessments.sort((a: any, b: any) => b.date - a.date)[0]
: null; : null;
const pointSumtotal = latestProfileAssessment ? latestProfileAssessment.pointSumTotal : null; const pointSum = latestProfileAssessment ? latestProfileAssessment.pointSum : null;
return { return {
id: item.id, id: item.id,
profileId: item.current_holder.id, profileId: item.current_holder.id,
@ -223,7 +223,7 @@ export class OrganizationUnauthorizeController extends Controller {
child3: item.orgChild3?.orgChild3Name ? item.orgChild3.orgChild3Name : null, child3: item.orgChild3?.orgChild3Name ? item.orgChild3.orgChild3Name : null,
child4Id: item.orgChild4Id, child4Id: item.orgChild4Id,
child4: item.orgChild4?.orgChild4Name ? item.orgChild4.orgChild4Name : null, child4: item.orgChild4?.orgChild4Name ? item.orgChild4.orgChild4Name : null,
result: pointSumtotal, result: pointSum,
duration: null, duration: null,
isPunish: isPunish:
item.current_holder.profileDisciplines.filter( item.current_holder.profileDisciplines.filter(