Skip to content

Commit

Permalink
[ feat ] Get member info with email in social member
Browse files Browse the repository at this point in the history
  • Loading branch information
Minuooooo committed Aug 22, 2023
1 parent f968729 commit caf9d07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public static GetMemberInfoResponseDto toGeneralMemberDto(String email, String n
.build();
}

public static GetMemberInfoResponseDto toSocialMemberDto(String loginType) {
public static GetMemberInfoResponseDto toSocialMemberDto(String email, String loginType) {
return GetMemberInfoResponseDto.builder()
.email(email)
.loginType(loginType)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public GetMemberInfoResponseDto getMemberInfo() { //회원 정보 가져오기
);
}

return GetMemberInfoResponseDto.toSocialMemberDto(getMemberSocial(currentMemberId).getProvider().getName());
return GetMemberInfoResponseDto.toSocialMemberDto(currentMember.getEmail(), getMemberSocial(currentMemberId).getProvider().getName());
}

public void deleteMember() {
Expand Down

0 comments on commit caf9d07

Please sign in to comment.