diff --git a/src/main/java/org/kakaoshare/backend/domain/funding/service/FundingService.java b/src/main/java/org/kakaoshare/backend/domain/funding/service/FundingService.java index 9e76b535..c674dcee 100644 --- a/src/main/java/org/kakaoshare/backend/domain/funding/service/FundingService.java +++ b/src/main/java/org/kakaoshare/backend/domain/funding/service/FundingService.java @@ -91,8 +91,12 @@ public ProgressResponse getMyFundingProgress(String providerId) { public ProgressResponse getFriendFundingProgress(String providerId, FriendFundingInquiryRequest inquiryRequest) { Member self = findMemberByProviderId(providerId); Member friend = findMemberByProviderId(inquiryRequest.getFriendProviderId()); //todo 친구 검증 메소드 추가해야함 - Funding funding = findByIdAndMemberId(inquiryRequest.getFundingId(), friend.getMemberId()); - + Funding funding = fundingRepository.findByMemberIdAndStatus(friend.getMemberId(), FundingStatus.PROGRESS) + .orElse(null); + + if (funding == null) { + return new ProgressResponse(); + } return getFundingProgress(funding.getFundingId(), friend.getMemberId()); }