Skip to content

Commit

Permalink
Merge pull request #1194 from cardano-foundation/feat/MET-2055-update…
Browse files Browse the repository at this point in the history
…-votes-section-dev-test

fix: get DRep by createdAt not exactly
  • Loading branch information
Sotatek-DucPhung committed May 9, 2024
2 parents 8d0082d + c8cf4c1 commit 6148fa3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public interface DrepInfoRepository extends JpaRepository<DRepInfo, Long> {
"""
SELECT dri.drepHash as drepHash, dri.activeVoteStake as activeVoteStake
FROM DRepInfo dri
WHERE dri.createdAt >= :blockTime and dri.status != 'RETIRED'
WHERE dri.createdAt <= :blockTime and dri.status != 'RETIRED'
""")
List<DRepInfoProjection> findDRepByCreatedAt(@Param("blockTime") Long blockTime);

Expand Down

0 comments on commit 6148fa3

Please sign in to comment.