fix: wrong sort
This commit is contained in:
parent
341ba66577
commit
fe365d31b8
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue