refactor: reorder request data
This commit is contained in:
parent
bd75a76ffd
commit
b1c56b7c4e
1 changed files with 1 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ export class RequestDataController extends Controller {
|
||||||
},
|
},
|
||||||
take: pageSize,
|
take: pageSize,
|
||||||
skip: (page - 1) * pageSize,
|
skip: (page - 1) * pageSize,
|
||||||
|
orderBy: { createdAt: "desc" },
|
||||||
}),
|
}),
|
||||||
prisma.requestData.count({ where }),
|
prisma.requestData.count({ where }),
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue