From 4cc7f5448424df7c2a8cc318af722c5d6b638669 Mon Sep 17 00:00:00 2001 From: Joanna Dyczka Date: Wed, 4 Sep 2024 14:09:02 +0200 Subject: [PATCH] [#1925] query time from vote tx instead of gov action tx --- CHANGELOG.md | 1 + govtool/backend/sql/get-votes.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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