fix: wrong sort

This commit is contained in:
Methapon Metanipat 2024-10-24 11:11:08 +07:00
parent 341ba66577
commit fe365d31b8

View file

@ -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,
},