Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public record MentoringForMentorResponse(
String profileImageUrl,
String nickname,
boolean isChecked,
boolean isConfirmed,
ZonedDateTime createdAt
) {

Expand All @@ -18,6 +19,7 @@ public static MentoringForMentorResponse of(Mentoring mentoring, SiteUser partne
partner.getProfileImageUrl(),
partner.getNickname(),
mentoring.getCheckedAtByMentor() != null,
mentoring.getConfirmedAt() != null,
mentoring.getCreatedAt()
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public SliceResponse<MentoringForMenteeResponse> getMentoringsForMentee(
throw new CustomException(ErrorCode.UNAUTHORIZED_MENTORING, "거절된 멘토링은 조회할 수 없습니다.");
}
Slice<Mentoring> mentoringSlice = mentoringRepository.findAllByMenteeIdAndVerifyStatus(siteUserId, verifyStatus, pageable);
List<Mentoring> mentorings = mentoringSlice.toList();

Map<Mentoring, SiteUser> mentoringToPartnerUser = mapMentoringToPartnerUserWithBatchQuery(
mentorings, Mentoring::getMentorId
mentoringSlice.toList(),
Mentoring::getMentorId
);

List<MentoringForMenteeResponse> content = new ArrayList<>();
Expand Down
Loading