Skip to content

Commit

Permalink
fix: Remove proposal check in votes query and remove v.id order
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Oct 24, 2024
1 parent bcb9441 commit 5011e5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/graphql/operations/votes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5011e5f

Please sign in to comment.