diff --git a/src/controllers/KpiUserEvaluationController.ts b/src/controllers/KpiUserEvaluationController.ts index c67ee44..1a6b7ca 100644 --- a/src/controllers/KpiUserEvaluationController.ts +++ b/src/controllers/KpiUserEvaluationController.ts @@ -290,14 +290,14 @@ export class KpiUserEvaluationController extends Controller { evaluatorId: item.evaluatorId, commanderId: item.commanderId, commanderHighId: item.commanderHighId, - root: item.org?item.org:null, - rootId: item.orgId?item.orgId:null, - position: item.position?item.position:null, + root: item.org ? item.org : null, + rootId: item.orgId ? item.orgId : null, + position: item.position ? item.position : null, // posTypeId: item.posTypeId, - posTypeName: item.posTypeName?item.posTypeName:null, + posTypeName: item.posTypeName ? item.posTypeName : null, // posLevelId: item.posLevelId, - posLevelName: item.posLevelName?item.posLevelName:null, - organization: organization?organization:null, + posLevelName: item.posLevelName ? item.posLevelName : null, + organization: organization ? organization : null, }; }); return new HttpSuccess({ data: mapData, total }); @@ -1385,7 +1385,7 @@ export class KpiUserEvaluationController extends Controller { Promise.all( kpiUserEvaluations.map(async (kpiUserEvaluation) => { kpiUserEvaluation.evaluationStatus = "KP7"; - await new CallAPI() + new CallAPI() .PostData(request, "/org/profile/assessments", { date: new Date(), name: kpiUserEvaluation.evaluationResults, @@ -1398,7 +1398,7 @@ export class KpiUserEvaluationController extends Controller { profileId: kpiUserEvaluation.profileId, }) .then(async (x) => {}); - await new CallAPI() + new CallAPI() .PostData(request, "/placement/noti/profile", { subject: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ระดับผลการประเมินการปฏิบัติราชการระดับบุคคลของคุณอยู่ในเกณฑ์ ${kpiUserEvaluation.summaryPoint}`, body: `${kpiUserEvaluation.prefix}${kpiUserEvaluation.firstName} ${kpiUserEvaluation.lastName} ระดับผลการประเมินการปฏิบัติราชการระดับบุคคลของคุณอยู่ในเกณฑ์ ${kpiUserEvaluation.summaryPoint}`,