fixed sorting

This commit is contained in:
2025-03-10 19:10:39 +05:30
parent 43881651f3
commit 065d1f3e71
8 changed files with 11 additions and 10 deletions

View File

@@ -130,9 +130,9 @@ export async function listRts(params: PageQueryParams, tenantId: string) {
$facet: {
metadata: [{ $count: "count" }],
data: [
{ $sort: sortObj },
{ $skip: (page - 1) * pageSize },
{ $limit: pageSize },
{ $sort: sortObj },
],
},
},