Skip to content

Commit

Permalink
refactor: 상태 확인 로직 MemberStatus로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Feb 9, 2024
1 parent d2df1ef commit db0adef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public static Member createGuestMember(String oauthId) {
}

public void softDelete() {
if (this.status == MemberStatus.DELETED) {
throw new CustomException(MEMBER_ALREADY_SOFT_DELETED);
if (this.status.isDeleted()) {
throw new CustomException(MEMBER_SOFT_DELETED);
}
this.status = MemberStatus.DELETED;
}
Expand Down

0 comments on commit db0adef

Please sign in to comment.