Skip to content

Commit

Permalink
fix: 구매자 정보 저장 로직 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
fnzl54 committed Mar 9, 2024
1 parent fa9c03b commit f80298b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f80298b

Please sign in to comment.