diff --git a/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java b/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java index 06030a4b..bf0a3b0a 100644 --- a/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java +++ b/src/main/java/site/goldenticket/domain/payment/service/PurchaseHistoryService.java @@ -99,6 +99,9 @@ public List getPurchaseCompletedHistory(PrincipalDeta List 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);