diff --git a/src/controllers/05-quotation-payment-controller.ts b/src/controllers/05-quotation-payment-controller.ts index 262fb68..1aebfe2 100644 --- a/src/controllers/05-quotation-payment-controller.ts +++ b/src/controllers/05-quotation-payment-controller.ts @@ -27,9 +27,10 @@ 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, + quotationPaymentData: { + orderBy: { date: "asc" }, + }, createdBy: true, updatedBy: true, },