Skip to content

Commit

Permalink
Merge pull request #155 from HS-Continuity/KAN-701--fix/고객용인증정보수정
Browse files Browse the repository at this point in the history
KAN-701 fix : 고객용인증정보수정
  • Loading branch information
kimujae authored Aug 5, 2024
2 parents 1d9a171 + cd24d56 commit 6b18e1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public int retrieveDeliveryFee(Long customerId) {
*/
@Transactional
public CustomerResponse.OfRetrieveForAuth retrieveCustomerForAuth(String businessNumber) {
Customer targetCustomer = customerRepository.findById(Long.valueOf(businessNumber))
Customer targetCustomer = customerRepository.findByStoreBusinessNumber(businessNumber)
.orElseThrow(() -> new CustomerException(CUSTOMER_NOT_FOUND, HttpStatus.NOT_FOUND));

return CustomerResponse.OfRetrieveForAuth.convertedBy(targetCustomer);
Expand Down

0 comments on commit 6b18e1f

Please sign in to comment.