fix: paging

This commit is contained in:
Methapon Metanipat 2024-10-07 10:39:32 +07:00
parent bbdf47205b
commit e845bd7fd6

View file

@ -205,6 +205,8 @@ export class QuotationController extends Controller {
customerBranch: true,
paySplit: true,
},
take: pageSize,
skip: (page - 1) * pageSize,
}),
prisma.quotation.count({ where }),
]);