From 6195f56cec422d5b59215b61384b604e9a3f0cb0 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 18 Apr 2024 17:24:28 +0700 Subject: [PATCH] format --- src/controllers/KpiEvaluationController.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/KpiEvaluationController.ts b/src/controllers/KpiEvaluationController.ts index 73f1ca8..057b6f7 100644 --- a/src/controllers/KpiEvaluationController.ts +++ b/src/controllers/KpiEvaluationController.ts @@ -91,6 +91,11 @@ async updateKpiEvaluations( level: "DESC"} }); - return new HttpSuccess({ data: kpiEvaluation, total }); + const formatted = kpiEvaluation.map((item) => ({ + id: item.id, + level: item.level, + description: item.description + })); + return new HttpSuccess({ data: formatted, total }); } }