Skip to content

Commit

Permalink
Merge pull request #231 from Yanol-Market/feature/12-purchase-complet…
Browse files Browse the repository at this point in the history
…ed-delete

Feat/12 결제완료 삭제 내역은 응답값에서 제외
  • Loading branch information
Su-daa authored Jan 25, 2024
2 parents 0db5ecc + 8eef342 commit c3ddf83
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 c3ddf83

Please sign in to comment.