diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a4806bd7..dff7385ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ changes. ### Fixed - Fix incorrect documentation link for "Learn More" button on proposal [Issue 1877](https://github.com/IntersectMBO/govtool/issues/1877) +- Fix getVotes sql to query time from vote tx instead of govAaction tx [Issue 1925](https://github.com/IntersectMBO/govtool/issues/1925) ### Changed diff --git a/govtool/backend/sql/get-votes.sql b/govtool/backend/sql/get-votes.sql index 7a875aba8..31aaba85f 100644 --- a/govtool/backend/sql/get-votes.sql +++ b/govtool/backend/sql/get-votes.sql @@ -11,6 +11,6 @@ on gov_action_tx.id = gov_action_proposal.tx_id join tx as vote_tx on vote_tx.id = voting_procedure.tx_id join block -on block.id = gov_action_tx.block_id +on block.id = vote_tx.block_id where drep_hash.raw = decode(?, 'hex') order by voting_procedure.gov_action_proposal_id, voting_procedure.drep_voter, voting_procedure.id desc