diff --git a/src/graphql/operations/votes.ts b/src/graphql/operations/votes.ts index 0163dc52..9ca9e22e 100644 --- a/src/graphql/operations/votes.ts +++ b/src/graphql/operations/votes.ts @@ -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 ?, ? `;