Skip to content

Commit

Permalink
hotfix: 상품 상세조회 시 거래중 여부 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yurim0628 committed Jan 25, 2024
1 parent 66c33df commit deacb4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit deacb4d

Please sign in to comment.