From deacb4d1b68217c30be1ef0b3057ce9841c6841f Mon Sep 17 00:00:00 2001 From: yurim0628 Date: Thu, 25 Jan 2024 13:16:09 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EC=83=81=ED=92=88=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=EC=A1=B0=ED=9A=8C=20=EC=8B=9C=20=EA=B1=B0=EB=9E=98?= =?UTF-8?q?=EC=A4=91=20=EC=97=AC=EB=B6=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/product/service/ProductOrderService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java b/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java index 4cb08187..138d7f3a 100644 --- a/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java +++ b/src/main/java/site/goldenticket/domain/product/service/ProductOrderService.java @@ -57,7 +57,7 @@ public ProductDetailResponse getProduct( String userKey = isAuthenticated ? principalDetails.getUsername() : productService.generateOrRetrieveAnonymousKey(request, response); boolean isSeller = isAuthenticated && principalDetails.getUserId().equals(product.getUserId()); - boolean isTrading = getOrdersForProduct(userId).isPresent() || !getNegotiationsForProduct(product).isEmpty(); + boolean isTrading = getOrdersForProduct(productId).isPresent() || !getNegotiationsForProduct(product).isEmpty(); productService.updateProductViewCount(userKey, productId.toString()); productService.updateAutocompleteCount(AUTOCOMPLETE_KEY, product.getAccommodationName());