fix(StorePage): fix sorting order in API request to use "downloads" instead of "liked_by" for popular pages

The sorting order in the API request for popular pages was using the "liked_by" field instead of the correct "downloads" field. This commit fixes the sorting order to use the correct field, ensuring that popular pages are sorted based on the number of downloads.
This commit is contained in:
anovazzi1 2023-11-13 12:18:45 -03:00
commit 83bb20d8f3

View file

@ -75,7 +75,7 @@ export default function StorePage(): JSX.Element {
pageIndex,
pageSize,
tabActive === "All" ? null : tabActive === "Flows" ? false : true,
pageOrder === "Popular" ? "-count(liked_by)" : "name",
pageOrder === "Popular" ? "-count(downloads)" : "name",
filteredCategories,
null,
null,