File tree Expand file tree Collapse file tree
src/main/java/com/example/RealMatch/user/application/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import org .springframework .transaction .annotation .Transactional ;
77
88import com .example .RealMatch .global .exception .CustomException ;
9- import com .example .RealMatch .match .domain .repository .MatchCampaignHistoryRepository ;
109import com .example .RealMatch .user .application .util .NicknameValidator ;
1110import com .example .RealMatch .user .domain .entity .AuthenticationMethod ;
1211import com .example .RealMatch .user .domain .entity .User ;
3635public class UserService {
3736
3837 private final UserRepository userRepository ;
39- private final MatchCampaignHistoryRepository matchCampaignHistoryRepository ;
4038 private final ScrapMockDataProvider scrapMockDataProvider ;
4139 private final AuthenticationMethodRepository authenticationMethodRepository ;
4240 private final UserMatchingDetailRepository userMatchingDetailRepository ;
@@ -48,8 +46,8 @@ public MyPageResponseDto getMyPage(Long userId) {
4846 User user = userRepository .findById (userId )
4947 .orElseThrow (() -> new CustomException (UserErrorCode .USER_NOT_FOUND ));
5048
51- // 매칭 검사 여부 확인 (캠페인 매칭 검사 기록 존재 여부)
52- boolean hasMatchingTest = matchCampaignHistoryRepository . existsByUserId (userId );
49+ // 매칭 검사 여부 확인
50+ boolean hasMatchingTest = userMatchingDetailRepository . existsByUserIdAndIsDeprecatedFalse (userId );
5351
5452 // DTO 변환 및 반환
5553 return MyPageResponseDto .from (user , hasMatchingTest );
You can’t perform that action at this time.
0 commit comments