diff --git a/src/main/java/com/selfrunner/gwalit/domain/homework/repository/HomeworkRepositoryImpl.java b/src/main/java/com/selfrunner/gwalit/domain/homework/repository/HomeworkRepositoryImpl.java index cf6da62a..954178a4 100644 --- a/src/main/java/com/selfrunner/gwalit/domain/homework/repository/HomeworkRepositoryImpl.java +++ b/src/main/java/com/selfrunner/gwalit/domain/homework/repository/HomeworkRepositoryImpl.java @@ -104,6 +104,7 @@ public HomeworkMainRes findHomeworkByHomeworkId(Member member, Long homeworkId) .orderBy(homework.homeworkId.asc(), new CaseBuilder() .when(memberAndLecture.member.memberId.eq(member.getMemberId())).then(0) .otherwise(1).asc()) + .limit(1) .fetchOne(); }