diff --git a/src/main/java/com/teamjo/techeermarket/domain/products/service/ProductSubServiceImpl.java b/src/main/java/com/teamjo/techeermarket/domain/products/service/ProductSubServiceImpl.java index a58e9bc..cf714ca 100644 --- a/src/main/java/com/teamjo/techeermarket/domain/products/service/ProductSubServiceImpl.java +++ b/src/main/java/com/teamjo/techeermarket/domain/products/service/ProductSubServiceImpl.java @@ -103,7 +103,7 @@ public void updateProductState(Long productId, ProductState newState, String ema if (newState.equals(RESERVED) || newState.equals(SALE)) { product.setProductState(newState); } else if (newState.equals(SOLD)) { // 판매 경우 - Users BuyerUsers = userRepository.findUserByEmail(email) + Users BuyerUsers = userRepository.findUserByEmail(buyerEmail) .orElseThrow(UserNotFoundException::new); product.setProductState(newState);