From c9f7e445fd3d797cd30a99448935cbe3aa88f9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B3=A0=EA=B2=BD=EC=88=98?= Date: Wed, 11 Feb 2026 21:33:01 +0900 Subject: [PATCH] =?UTF-8?q?fix(#378):=20=EB=A7=A4=EC=B9=AD=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RealMatch/user/application/service/UserService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/RealMatch/user/application/service/UserService.java b/src/main/java/com/example/RealMatch/user/application/service/UserService.java index f2a91998..9d8616ae 100644 --- a/src/main/java/com/example/RealMatch/user/application/service/UserService.java +++ b/src/main/java/com/example/RealMatch/user/application/service/UserService.java @@ -6,7 +6,6 @@ import org.springframework.transaction.annotation.Transactional; import com.example.RealMatch.global.exception.CustomException; -import com.example.RealMatch.match.domain.repository.MatchCampaignHistoryRepository; import com.example.RealMatch.user.application.util.NicknameValidator; import com.example.RealMatch.user.domain.entity.AuthenticationMethod; import com.example.RealMatch.user.domain.entity.User; @@ -36,7 +35,6 @@ public class UserService { private final UserRepository userRepository; - private final MatchCampaignHistoryRepository matchCampaignHistoryRepository; private final ScrapMockDataProvider scrapMockDataProvider; private final AuthenticationMethodRepository authenticationMethodRepository; private final UserMatchingDetailRepository userMatchingDetailRepository; @@ -48,8 +46,8 @@ public MyPageResponseDto getMyPage(Long userId) { User user = userRepository.findById(userId) .orElseThrow(() -> new CustomException(UserErrorCode.USER_NOT_FOUND)); - // 매칭 검사 여부 확인 (캠페인 매칭 검사 기록 존재 여부) - boolean hasMatchingTest = matchCampaignHistoryRepository.existsByUserId(userId); + // 매칭 검사 여부 확인 + boolean hasMatchingTest = userMatchingDetailRepository.existsByUserIdAndIsDeprecatedFalse(userId); // DTO 변환 및 반환 return MyPageResponseDto.from(user, hasMatchingTest);