From 8c9d4aa59bae1bea4bf126252c4347ec20e22944 Mon Sep 17 00:00:00 2001 From: k00b Date: Thu, 19 Sep 2024 17:07:36 -0500 Subject: [PATCH] fix auction based ranking --- api/resolvers/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/item.js b/api/resolvers/item.js index 96345395..447a8003 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -479,7 +479,7 @@ export default { '"pinId" IS NULL', subClause(sub, 4) )} - ORDER BY group_rank, rank + ORDER BY group_rank DESC, rank OFFSET $2 LIMIT $3`, orderBy: 'ORDER BY group_rank DESC, rank'