Skip to content

Commit

Permalink
[fix] getCouponRoomTypeStringsExcludingTwoNight 메소드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tkddn204 committed Jan 23, 2024
1 parent 5132c30 commit a0cb98a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static Coupon from(
public List<String> getCouponRoomTypeStringsExcludingTwoNight() {
return Stream.of(this.getCouponRoomType(), this.getCouponRoomStayType())
.filter(Objects::nonNull)
.filter(roomType -> roomType != CouponRoomType.TWO_NIGHT)
.map(roomType -> (roomType == CouponRoomType.TWO_NIGHT) ? CouponRoomType.LODGE : roomType)
.map(CouponRoomType::getValue).toList();
}

Expand Down

0 comments on commit a0cb98a

Please sign in to comment.