From 97dda5f96df0b77cdc46d5b2d72935966104b616 Mon Sep 17 00:00:00 2001 From: nohy6630 Date: Thu, 23 May 2024 01:31:51 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=B0=B0=EC=9B=80=EB=82=98=EB=88=84?= =?UTF-8?q?=EA=B8=B0=20=EC=83=81=EC=83=88=ED=8E=98=EC=9D=B4=EC=A7=80=20api?= =?UTF-8?q?=20=EB=B0=B0=EC=9B=80=20id=EA=B0=92=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/experience/dto/response/ReadExperienceDetailRes.java | 2 ++ .../backend/domain/experience/service/ExperienceService.java | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/meetup/teame/backend/domain/experience/dto/response/ReadExperienceDetailRes.java b/src/main/java/com/meetup/teame/backend/domain/experience/dto/response/ReadExperienceDetailRes.java index 90d2b96..cd7280e 100644 --- a/src/main/java/com/meetup/teame/backend/domain/experience/dto/response/ReadExperienceDetailRes.java +++ b/src/main/java/com/meetup/teame/backend/domain/experience/dto/response/ReadExperienceDetailRes.java @@ -11,6 +11,7 @@ @Getter @Builder public class ReadExperienceDetailRes { + private Long id; private String imageUrl; private String name; private Long age; @@ -37,6 +38,7 @@ public static ReadExperienceDetailRes of(Experience experience) { .toList(); return ReadExperienceDetailRes.builder() + .id(experience.getId()) .imageUrl(user.getImageUrl()) .name(user.getName()) .age(user.getAge()) diff --git a/src/main/java/com/meetup/teame/backend/domain/experience/service/ExperienceService.java b/src/main/java/com/meetup/teame/backend/domain/experience/service/ExperienceService.java index 1e5669f..9c218ce 100644 --- a/src/main/java/com/meetup/teame/backend/domain/experience/service/ExperienceService.java +++ b/src/main/java/com/meetup/teame/backend/domain/experience/service/ExperienceService.java @@ -48,7 +48,6 @@ else if (sort.equals("review")) public MyExperienceProfileRes readMyExperienceProfile() { Long userId = SecurityContextProvider.getAuthenticatedUserId(); - //todo 1+N문제 발생가능 테스트해보고 default_fetch_batch_size 적용 User user = userRepository.findById(userId) .orElseThrow(() -> new CustomException(ExceptionContent.NOT_FOUND_USER)); return MyExperienceProfileRes.of(user);