Skip to content

Commit

Permalink
Merge pull request #63 from DayoookE/feat/#39
Browse files Browse the repository at this point in the history
feat/39: 튜터 일정 조회 api 로직 수정
  • Loading branch information
Gyuhyeok99 authored Dec 15, 2024
2 parents 3e7a3a5 + b469a3a commit 96adfb4
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,10 @@ public Page<SearchTutorApplicationResponse> getTutorApplication(User user, Integ
application.getTimeSlot().getId()))
.toList();

// lesson 조회 및 ID 반환 (있으면 ID, 없으면 null)
Lesson lesson = lessonJpaRepository.findByApplicationGroupIdAndState(applicationGroup.getId(), ACTIVE)
.orElse(null);

if (lesson != null) {
log.info("lesson id: {}", lesson.getId());
} else {
log.info("lesson is null");
}

// SearchTutorApplicationResponse 생성
return tutorMapper.toSearchTutorApplicationResponse(
applicationGroup,
Expand Down

0 comments on commit 96adfb4

Please sign in to comment.