diff --git a/src/main/java/com/coniverse/dangjang/domain/point/service/PointService.java b/src/main/java/com/coniverse/dangjang/domain/point/service/PointService.java index 080b1c23..b43d3263 100644 --- a/src/main/java/com/coniverse/dangjang/domain/point/service/PointService.java +++ b/src/main/java/com/coniverse/dangjang/domain/point/service/PointService.java @@ -1,6 +1,7 @@ package com.coniverse.dangjang.domain.point.service; import java.time.LocalDate; +import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; @@ -181,13 +182,14 @@ private int getBalancePoint(int changePoint, int balancePoint) { * 구매 가능 상품 조회 *

* 유저의 현재 포인트와 구매 가능한 상품을 조회한다. + * 11월 10일 이후 포인트 서비스를 종료한다. * * @param oauthId 유저 아이디 * @since 1.0.0 */ public ProductListResponse getProducts(String oauthId) { int balancePoint = pointSearchService.findUserPointByOauthId(oauthId).getPoint(); - List productList = pointSearchService.findAllByType(PointType.USE); + List productList = new ArrayList<>(); List descriptionListToEarnPoint = pointSearchService.findAllByType(PointType.EARN).stream() .map(PointProduct::getDescription) .collect(Collectors.toList()); diff --git a/src/test/java/com/coniverse/dangjang/domain/point/service/PointHistoryServiceTest.java b/src/test/java/com/coniverse/dangjang/domain/point/service/PointHistoryServiceTest.java index 095ab8d6..71ad945d 100644 --- a/src/test/java/com/coniverse/dangjang/domain/point/service/PointHistoryServiceTest.java +++ b/src/test/java/com/coniverse/dangjang/domain/point/service/PointHistoryServiceTest.java @@ -281,7 +281,6 @@ void tearDown() { ProductListResponse response = pointService.getProducts(유저.getOauthId()); //then assertThat(response.balancedPoint()).isEqualTo(유저_포인트.getPoint()); - assertThat(response.productList()).hasSize(useTypeProductSize); assertThat(response.descriptionListToEarnPoint()).hasSize(earnTypeProductSize); }