Skip to content

Commit

Permalink
Merge pull request #89 from co-niverse/refactor/pointRollback
Browse files Browse the repository at this point in the history
Refactor/point rollback
  • Loading branch information
GIVEN53 authored Dec 1, 2023
2 parents 6490044 + 866848c commit e08eb2e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -188,7 +189,7 @@ private int getBalancePoint(int changePoint, int balancePoint) {
*/
public ProductListResponse getProducts(String oauthId) {
int balancePoint = pointSearchService.findUserPointByOauthId(oauthId).getPoint();
List<PointProduct> productList = pointSearchService.findAllByType(PointType.USE);
List<PointProduct> productList = new ArrayList<>();
List<String> descriptionListToEarnPoint = pointSearchService.findAllByType(PointType.EARN).stream()
.map(PointProduct::getDescription)
.collect(Collectors.toList());
Expand Down

0 comments on commit e08eb2e

Please sign in to comment.