Skip to content

Commit

Permalink
fix: Role을 User로 변경하는 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed Mar 20, 2024
1 parent 3332e3f commit 36267ff
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 @@ -41,7 +41,8 @@ public void updateRefreshToken(String updateRefreshToken) {
this.refreshToken = updateRefreshToken;
}

public void updateNickname(String nickname) {
public void signUp(String nickname) {
this.nickname = nickname;
this.role = Role.USER;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public class MemberService {
@Transactional
public void signUp(SignUpDto dto) {
Member member = authService.getMember();
member.updateNickname(dto.getNickname());
member.signUp(dto.getNickname());
}
}

0 comments on commit 36267ff

Please sign in to comment.