Skip to content

Commit

Permalink
fix: Fix newWishCoupon logic
Browse files Browse the repository at this point in the history
  • Loading branch information
2zerozu committed Jul 20, 2023
1 parent 37d69b0 commit ffc7a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/universe/uni/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public UserWishCouponResponseDto getUserWishCouponList(Long userId) {

int availableWishCoupon = (int)wishCouponList.stream().filter(wishCoupon -> !wishCoupon.isUsed()).count();

int newWishCoupon = (int)wishCouponList.stream().filter(WishCoupon::isVisible).count();
int newWishCoupon = (int)wishCouponList.stream().filter(wishCoupon -> !wishCoupon.isVisible()).count();

List<WishCouponDto> wishCouponDtoList = wishCouponList.stream()
.sorted(Comparator.comparing(WishCoupon::getId).reversed())
Expand Down

0 comments on commit ffc7a4c

Please sign in to comment.