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