Skip to content

Commit

Permalink
Merge pull request #87 from Team-Growthook/fix/#86-member-detail-get-api
Browse files Browse the repository at this point in the history
[FIX] 회원 정보 조회 시, 프로필 이미지 url도 내려주도록 수정
  • Loading branch information
yeseul106 authored Jan 23, 2024
2 parents 63fca73 + afcccef commit bd39087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
public class MemberDetailGetResponseDto {
private String nickname;
private String email;
private String profileImage;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public class MemberServiceImpl implements MemberService{
@Override
public MemberDetailGetResponseDto getMemberProfile(Long memberId) {
Member member = memberRepository.findMemberByIdOrThrow(memberId);
return MemberDetailGetResponseDto.of(member.getNickname(), member.getEmail());
return MemberDetailGetResponseDto.of(member.getNickname(), member.getEmail(),
member.getProfileImage());
}

@Override
Expand Down

0 comments on commit bd39087

Please sign in to comment.