From 991d43b5942141f274d526c9c3289a90877f8283 Mon Sep 17 00:00:00 2001 From: "chosw1002@naver.com" Date: Sun, 6 Oct 2024 19:14:11 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20errorcode=20static=20import=20?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gdsc/domain/study/application/MentorStudyService.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);