From 5011e5fa6c1e131dab2ae7fd6992ed69cf499c50 Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Thu, 24 Oct 2024 20:55:14 +0530 Subject: [PATCH] fix: Remove proposal check in votes query and remove v.id order --- src/graphql/operations/votes.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graphql/operations/votes.ts b/src/graphql/operations/votes.ts index c4a1617f..3c3ab28f 100644 --- a/src/graphql/operations/votes.ts +++ b/src/graphql/operations/votes.ts @@ -44,9 +44,8 @@ async function query(parent, args, context?, info?) { const query = ` SELECT v.* FROM votes v - INNER JOIN proposals p ON v.proposal = p.id WHERE 1 = 1 ${queryStr} - ORDER BY ${orderBy} ${orderDirection}, v.id ASC LIMIT ?, ? + ORDER BY ${orderBy} ${orderDirection} LIMIT ?, ? `; params.push(skip, first); try {