Skip to content

Commit

Permalink
[#1925] query time from vote tx instead of gov action tx
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dyczka committed Sep 4, 2024
1 parent 57bf356 commit 4cc7f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion govtool/backend/sql/get-votes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4cc7f54

Please sign in to comment.