fix: payment sort

This commit is contained in:
Methapon Metanipat 2024-10-24 11:04:44 +07:00
parent d4d0b455cc
commit 341ba66577

View file

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