Skip to content

Commit

Permalink
Fix: 배움나누기 상새페이지 api 배움 id값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
nohy6630 committed May 22, 2024
1 parent 3c04983 commit 97dda5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@Getter
@Builder
public class ReadExperienceDetailRes {
private Long id;
private String imageUrl;
private String name;
private Long age;
Expand All @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 97dda5f

Please sign in to comment.