From b7c0075f5adb7e2dd15ddb732497ffb0d1b1b8d8 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 29 Apr 2024 13:14:40 +0700 Subject: [PATCH] fix sort reason --- src/controllers/KpiUserEvaluationController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/KpiUserEvaluationController.ts b/src/controllers/KpiUserEvaluationController.ts index db4c298..102a1f8 100644 --- a/src/controllers/KpiUserEvaluationController.ts +++ b/src/controllers/KpiUserEvaluationController.ts @@ -241,6 +241,7 @@ export class KpiUserEvaluationController extends Controller { async listKpiUserCommanderEvaluation(@Path() id: string, @Path() type: string) { const kpiUserEvaluationReason = await this.kpiUserEvaluationReasonRepository.find({ where: { kpiUserEvaluationId: id, type: type.trim().toUpperCase() }, + order: { createdAt: "ASC" } }); return new HttpSuccess(kpiUserEvaluationReason); }