Skip to content

Commit

Permalink
Merge pull request #513 from Travel-in-nanaland/hotfix/#511-memberUnique
Browse files Browse the repository at this point in the history
[Fix] 회원 탈퇴 시, providerId 수정
  • Loading branch information
jyajoo authored Nov 18, 2024
2 parents 0e6e7e0 + 74f2135 commit 8d8d701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void updateLanguage(Language language) {
public void updatePersonalInfo() {
this.email = "[email protected]";
this.nickname = UUID.randomUUID().toString().substring(0, 16);
this.providerId = "INACTIVE";
this.providerId = "INACTIVE" + nickname;
this.gender = "";
this.birthDate = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ void deleteWithdrawalMemberInfo() {

// then: 회원 개인정보 삭제 확인
assertThat(member.getEmail()).isEqualTo("[email protected]");
assertThat(member.getProviderId()).isEqualTo("INACTIVE");
assertThat(member.getProviderId()).isEqualTo("INACTIVE"+member.getNickname());
assertThat(member.getGender()).isEmpty();
assertThat(member.getBirthDate()).isNull();
verify(member).updatePersonalInfo();
Expand Down

0 comments on commit 8d8d701

Please sign in to comment.