Skip to content

Commit

Permalink
[fix] 카카오 로그인 프로필 사진 업데이트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Feb 27, 2024
1 parent 6d250ab commit c224b1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/sopt/sweet/domain/member/entity/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ public Member(Long socialId, String nickName, SocialType socialType, String prof
this.socialType = socialType;
this.profileImg = profileImg;
}

public void setProfileImg(String profileImage) {
this.profileImg = profileImage;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public KakaoUserInfoResponseDto saveMember(Long socialId, String nickname, Strin
sendDiscordNotification(nickname);
return new KakaoUserInfoResponseDto(member.getId(), socialId, nickname, profileImage);
}
existMember.setProfileImg(profileImage);
memberRepository.save(existMember);
return new KakaoUserInfoResponseDto(existMember.getId(), socialId, nickname, profileImage);
}

Expand Down

0 comments on commit c224b1f

Please sign in to comment.