From a0cb98ab7b8255955770fce7e470cc30f8530162 Mon Sep 17 00:00:00 2001 From: rightpair Date: Tue, 23 Jan 2024 23:04:45 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20getCouponRoomTypeStringsExcludingTwoNig?= =?UTF-8?q?ht=20=EB=A9=94=EC=86=8C=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/coolpeace/domain/coupon/entity/Coupon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/coolpeace/domain/coupon/entity/Coupon.java b/src/main/java/com/coolpeace/domain/coupon/entity/Coupon.java index b006f320..e227cd37 100644 --- a/src/main/java/com/coolpeace/domain/coupon/entity/Coupon.java +++ b/src/main/java/com/coolpeace/domain/coupon/entity/Coupon.java @@ -154,7 +154,7 @@ public static Coupon from( public List 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(); }