From 855c33b26e1880101a26defb1f2fd198bacc5053 Mon Sep 17 00:00:00 2001 From: nayonsoso Date: Mon, 11 Aug 2025 16:04:52 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=EB=A9=98=ED=86=A0=EA=B0=80=20?= =?UTF-8?q?=EB=A9=98=ED=86=A0=EB=A7=81=20=EC=A1=B0=ED=9A=8C=ED=95=A0=20?= =?UTF-8?q?=EB=95=8C,=20confirm=20=EB=90=98=EC=97=88=EB=8A=94=EC=A7=80?= =?UTF-8?q?=EB=8F=84=20=ED=95=A8=EA=BB=98=20=EC=9D=91=EB=8B=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solidconnection/mentor/dto/MentoringForMentorResponse.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java b/src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java index 9ee1889f6..54622d821 100644 --- a/src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java +++ b/src/main/java/com/example/solidconnection/mentor/dto/MentoringForMentorResponse.java @@ -9,6 +9,7 @@ public record MentoringForMentorResponse( String profileImageUrl, String nickname, boolean isChecked, + boolean isConfirmed, ZonedDateTime createdAt ) { @@ -18,6 +19,7 @@ public static MentoringForMentorResponse of(Mentoring mentoring, SiteUser partne partner.getProfileImageUrl(), partner.getNickname(), mentoring.getCheckedAtByMentor() != null, + mentoring.getConfirmedAt() != null, mentoring.getCreatedAt() ); } From 89ee0131827cff2dff4819d92f50ca1ee8e1a3b4 Mon Sep 17 00:00:00 2001 From: nayonsoso Date: Mon, 11 Aug 2025 16:05:39 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=EB=B9=84=EC=8A=B7=ED=95=9C=20?= =?UTF-8?q?=EB=91=90=20=EC=BD=94=EB=93=9C=EC=9D=98=20=ED=98=95=EC=8B=9D=20?= =?UTF-8?q?=ED=86=B5=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - getMentoringsForMentee와 getMentoringsForMentor가 같은 구조를 갖도록 --- .../solidconnection/mentor/service/MentoringQueryService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/solidconnection/mentor/service/MentoringQueryService.java b/src/main/java/com/example/solidconnection/mentor/service/MentoringQueryService.java index bb9deafe0..a102b9f63 100644 --- a/src/main/java/com/example/solidconnection/mentor/service/MentoringQueryService.java +++ b/src/main/java/com/example/solidconnection/mentor/service/MentoringQueryService.java @@ -42,10 +42,10 @@ public SliceResponse getMentoringsForMentee( throw new CustomException(ErrorCode.UNAUTHORIZED_MENTORING, "거절된 멘토링은 조회할 수 없습니다."); } Slice mentoringSlice = mentoringRepository.findAllByMenteeIdAndVerifyStatus(siteUserId, verifyStatus, pageable); - List mentorings = mentoringSlice.toList(); Map mentoringToPartnerUser = mapMentoringToPartnerUserWithBatchQuery( - mentorings, Mentoring::getMentorId + mentoringSlice.toList(), + Mentoring::getMentorId ); List content = new ArrayList<>();