Skip to content

Commit

Permalink
KAN-701 fix : 인증용 고객조회 API 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimujae committed Aug 5, 2024
1 parent 9f3615d commit 6da5004
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 6da5004

Please sign in to comment.