Skip to content

Commit

Permalink
fix: get DRep by createdAt not exactly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-ThinhVu committed May 9, 2024
1 parent 8b8deb7 commit c8cf4c1
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 c8cf4c1

Please sign in to comment.