Skip to content

Commit

Permalink
feat/#39: 강의 승인 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyuhyeok99 committed Dec 13, 2024
1 parent 24c26b8 commit d7130af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ public ApplicationResponse approveApplication(User tutor, Integer applicationGro
tutorSchedule.makeUnavailable();
log.info("스케줄 업데이트 완료 - {}", scheduleId);

// 7.2. Lesson 생성
CreateLessonRequest createLessonRequest = lessonMapper.toCreateLessonRequest(application);
// 7.2. Lesson 생성료
CreateLessonRequest createLessonRequest = lessonMapper.toCreateLessonRequest(applicationGroup);
LessonResponse lessonResponse = lessonService.createLesson(createLessonRequest);
log.info("Lesson 생성 성공 - Lesson ID: {}", lessonResponse.id());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public interface LessonMapper {
/**
* Application을 CreateLessonRequest로 변환해주는 매퍼
*
* @param application 등록할 신청 정보
* @param applicationGroup 등록할 신청 정보
* @return createCourseRequest
*/
CreateLessonRequest toCreateLessonRequest(Application application);
CreateLessonRequest toCreateLessonRequest(ApplicationGroup applicationGroup);

/**
* Lesson를 LessonResponse로 변환하는 매퍼
Expand Down

0 comments on commit d7130af

Please sign in to comment.