Skip to content

Commit 6b88ae0

Browse files
committed
feat: 레슨 관련 조건 추가
1 parent 8ee5cbd commit 6b88ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/threestar/trainus/domain/lesson/student/service/StudentLessonService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public void cancelPayment(Long lessonId, Long userId) {
323323
public void checkValidLessonParticipant(Lesson lesson, User user) {
324324
boolean ifExists = lessonParticipantRepository.existsByLessonIdAndUserId(lesson.getId(), user.getId());
325325
if (!ifExists) {
326-
throw new BusinessException(ErrorCode.ALREADY_PAID_LESSON);
326+
throw new BusinessException(ErrorCode.INVALID_LESSON_PARTICIPANT);
327327
}
328328
}
329329
}

0 commit comments

Comments
 (0)