Skip to content

Commit

Permalink
refactor: lessonRepository findByUserAndAttendedSemesterAndLesson 함수명…
Browse files Browse the repository at this point in the history
… 변경 (#77) (#84)

* refactor: Note 관련 api 스웨거 명세 추가 (#77) (#81)

* refactor: lessonRepository findByUserAndAttendedSemesterAndLesson 함수명 변경 (#77) (#83)

* refactor: Note 관련 api 스웨거 명세 추가 (#77)

* fix: LessonServiceTest 병합 충돌 해결 (#79) (#80)

* refactor: Note 관련 api 스웨거 명세 추가 (#77) (#81) (#82)

* refactor: lessonRepository findByUserAndAttendedSemesterAndLesson 함수명 변경 (#77)

---------

Co-authored-by: 이세원 <[email protected]>

---------

Co-authored-by: 이세원 <[email protected]>
  • Loading branch information
Gyuhyeok99 and leesewon00 authored Feb 12, 2024
1 parent 09ef059 commit 0e9d59b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public NoteResponseDTO.NoteDeleteDTO deleteUserNote(User user, Long noteId) {
private UserLesson getUserLesson(User user, Long lessonId, String semester) {
Lesson lesson = lessonRepository.findById(lessonId).orElseThrow(
() -> new GeneralException(LESSON_NOT_FOUND));
return userLessonRepository.findByUserAndAndAttendedSemesterAndAndLesson(user, semester, lesson)
return userLessonRepository.findByUserAndAttendedSemesterAndLesson(user, semester, lesson)
.orElseThrow(() -> new GeneralException(USER_LESSON_NOT_FOUND));
}

Expand Down

0 comments on commit 0e9d59b

Please sign in to comment.