fix: paging not take effect

This commit is contained in:
Methapon2001 2025-02-03 11:31:39 +07:00
parent 0e65284b5c
commit d869adc82d

View file

@ -150,6 +150,8 @@ export class InvoiceController extends Controller {
createdBy: true,
},
orderBy: { createdAt: "asc" },
take: pageSize,
skip: (page - 1) * pageSize,
}),
prisma.invoice.count({ where }),
]);