fix sortings in users page

This commit is contained in:
Andrii Andrushchyshyn 2025-05-05 23:08:29 +03:00
parent 50eb1a36e3
commit e743f48f4a
No known key found for this signature in database
GPG key ID: 6675AEDCEE0FAAD0

View file

@ -110,7 +110,7 @@ WITH AggregatedUsers AS (
SELECT *
FROM AggregatedUsers
WHERE 1 = 1 ${filterStatement}
ORDER BY {sortBy:String} ${actualSortOrder}
ORDER BY ${actualSortBy} ${actualSortOrder}
LIMIT {limit:Int32} OFFSET {offset:Int32}
`;
@ -135,8 +135,6 @@ WHERE
siteId: Number(site),
limit: pageSizeNum,
offset,
sortBy: actualSortBy,
sortOrder: actualSortOrder,
},
}),
clickhouse.query({