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