Skip to content

Commit

Permalink
Merge pull request #153 from HS-Continuity/KAN-701--fix/인증용-고객조회-API수정
Browse files Browse the repository at this point in the history
Kan 701  fix/인증용 고객조회 api수정
  • Loading branch information
kimujae authored Aug 5, 2024
2 parents 5ee74ea + 6da5004 commit a3221a6
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.findByStoreBusinessNumber(businessNumber)
Customer targetCustomer = customerRepository.findById(Long.valueOf(businessNumber))
.orElseThrow(() -> new CustomerException(CUSTOMER_NOT_FOUND, HttpStatus.NOT_FOUND));

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

0 comments on commit a3221a6

Please sign in to comment.