From 341ba6657703d284cd521f1325406e34c3f19fc7 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 24 Oct 2024 11:04:44 +0700 Subject: [PATCH] fix: payment sort --- src/controllers/05-quotation-payment-controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/05-quotation-payment-controller.ts b/src/controllers/05-quotation-payment-controller.ts index e45f187..262fb68 100644 --- a/src/controllers/05-quotation-payment-controller.ts +++ b/src/controllers/05-quotation-payment-controller.ts @@ -27,6 +27,7 @@ export class QuotationPayment extends Controller { async getPayment(@Path() quotationId: string) { const record = await prisma.quotation.findFirst({ where: { id: quotationId }, + orderBy: { createdAt: "asc" }, include: { quotationPaymentData: true, createdBy: true,