diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java index f0b290dcd..03927c1c7 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java @@ -22,7 +22,6 @@ import com.gdschongik.gdsc.domain.study.dto.response.StudyStudentResponse; import com.gdschongik.gdsc.domain.study.dto.response.StudyTodoResponse; import com.gdschongik.gdsc.global.exception.CustomException; -import com.gdschongik.gdsc.global.exception.ErrorCode; import com.gdschongik.gdsc.global.util.MemberUtil; import java.time.LocalDate; import java.util.ArrayList; @@ -63,8 +62,7 @@ public List getStudiesInCharge() { @Transactional(readOnly = true) public Page getStudyStudents(Long studyId, Pageable pageable) { Member currentMember = memberUtil.getCurrentMember(); - Study study = - studyRepository.findById(studyId).orElseThrow(() -> new CustomException(ErrorCode.STUDY_NOT_FOUND)); + Study study = studyRepository.findById(studyId).orElseThrow(() -> new CustomException(STUDY_NOT_FOUND)); studyValidator.validateStudyMentor(currentMember, study); List studyDetails = studyDetailRepository.findAllByStudyId(studyId);