Skip to content

Commit

Permalink
fix: Fix Missing info for rewards history - MEED-7698 - Meeds-io/MIPs…
Browse files Browse the repository at this point in the history
…#154

Prior to this chyange, when access the overview page then chlicking to reward see all drawer, the reward tab is empty
  • Loading branch information
AzmiTouil committed Nov 12, 2024
1 parent 166ed01 commit 753f11e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ SELECT SUM(rw.points) FROM Reward rw WHERE rw.period.id = :periodId AND
""")
Double countWalletRewardsPointsByPeriodIdAndStatus(@Param("periodId") long periodId,
@Param("isValid") boolean isValid);

List<WalletRewardEntity> findWalletRewardEntitiesByIdentityId(long identityId, Pageable pageable);
@Query("""
SELECT rw FROM Reward rw JOIN rw.period WHERE rw.identityId = :identityId ORDER BY rw.period.startTime DESC, rw.period.endTime ASC
""")
List<WalletRewardEntity> findWalletRewardEntitiesByIdentityId(@Param("identityId") long identityId, Pageable pageable);

double countWalletRewardEntitiesByIdentityId(long identityId);

Expand Down

0 comments on commit 753f11e

Please sign in to comment.