Skip to content

Commit

Permalink
feat: 결제완료 삭제 내역은 응답값에서 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
Su-daa committed Jan 25, 2024
1 parent 0db5ecc commit 8eef342
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ public List<PurchaseCompletedResponse> getPurchaseCompletedHistory(PrincipalDeta
List<PurchaseCompletedResponse> purchaseCompletedResponses = new ArrayList<>();

for (Order order : orders) {
if (order.isCustomerViewCheck()) {
continue;
}
Product product = productService.getProduct(order.getProductId());
PurchaseCompletedResponse response = PurchaseCompletedResponse.create(product, order);
purchaseCompletedResponses.add(response);
Expand Down

0 comments on commit 8eef342

Please sign in to comment.