From f6485d46074d899c6cff634bbb578ffddf8c8a7e Mon Sep 17 00:00:00 2001 From: Adisak Date: Thu, 2 Oct 2025 15:38:17 +0700 Subject: [PATCH] fix --- src/controllers/KpiUserEvaluationController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controllers/KpiUserEvaluationController.ts b/src/controllers/KpiUserEvaluationController.ts index 61f9f74..b311bae 100644 --- a/src/controllers/KpiUserEvaluationController.ts +++ b/src/controllers/KpiUserEvaluationController.ts @@ -408,8 +408,7 @@ export class KpiUserEvaluationController extends Controller { ); } }else{ - query = query.orderBy("kpiPeriod.year", "DESC") - .addOrderBy("kpiUserEvaluation.createdAt", "DESC") + query = query.orderBy("kpiUserEvaluation.createdAt", "DESC") } const [kpiUserEvaluation, total] = await query