Skip to content

Commit

Permalink
fix: Exclude votes without proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Sep 7, 2024
1 parent 9772b4c commit d6cadf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/operations/votes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ 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 ?, ?
`;
Expand Down

0 comments on commit d6cadf9

Please sign in to comment.