fix: paging not take effect receipt
This commit is contained in:
parent
d869adc82d
commit
fc114ace51
1 changed files with 2 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ export class ReceiptController extends Controller {
|
|||
},
|
||||
},
|
||||
orderBy: { createdAt: "asc" },
|
||||
take: pageSize,
|
||||
skip: (page - 1) * pageSize,
|
||||
}),
|
||||
prisma.payment.count({ where }),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue