fix: paging
This commit is contained in:
parent
bbdf47205b
commit
e845bd7fd6
1 changed files with 2 additions and 0 deletions
|
|
@ -205,6 +205,8 @@ export class QuotationController extends Controller {
|
||||||
customerBranch: true,
|
customerBranch: true,
|
||||||
paySplit: true,
|
paySplit: true,
|
||||||
},
|
},
|
||||||
|
take: pageSize,
|
||||||
|
skip: (page - 1) * pageSize,
|
||||||
}),
|
}),
|
||||||
prisma.quotation.count({ where }),
|
prisma.quotation.count({ where }),
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue