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