Skip to content

Commit

Permalink
๐Ÿ› [Fix]: ํšŒ์› ๋ณต๊ตฌ ์‹œ disableAt์ด ์•„๋‹Œ deletedTime ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
jamey authored and jamey committed Jan 8, 2025
1 parent c49dfd0 commit c5762e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/com/avab/avab/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public void enableUser() {
this.userStatus = UserStatus.ENABLED;
}

public void restoreUser() {
this.deletedTime = null;
this.userStatus = UserStatus.ENABLED;
}

public Boolean isDisabled() {
return this.userStatus == UserStatus.DISABLED;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public User restoreUserDeletion(String restoreToken) {
throw new UserException(ErrorStatus.USER_NOT_DELETED);
}

user.enableUser();
user.restoreUser();
return user;
}
}

0 comments on commit c5762e4

Please sign in to comment.