diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index dc5c925..9ccd3e8 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -205,6 +205,8 @@ export class QuotationController extends Controller { customerBranch: true, paySplit: true, }, + take: pageSize, + skip: (page - 1) * pageSize, }), prisma.quotation.count({ where }), ]);