fix: data ordering
This commit is contained in:
parent
112bd0eb23
commit
120e2942b8
6 changed files with 8 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ export class CustomerController extends Controller {
|
|||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
prisma.customer.findMany({
|
||||
orderBy: { createdAt: "asc" },
|
||||
where,
|
||||
take: pageSize,
|
||||
skip: (page - 1) * pageSize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue