Skip to content

Commit

Permalink
fix: 메서드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Feb 11, 2024
1 parent f94c844 commit b8d8fa0
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 @@ -38,7 +38,7 @@ public void updateMember(Long memberId, MemberUpdateRequest request) {
Member member =
memberRepository.findById(memberId).orElseThrow(() -> new CustomException(ErrorCode.MEMBER_NOT_FOUND));

member.validateUpdatable();
member.validateStatusUpdatable();
member.updateMemberInfo(request);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void validateRegex(String value, String regex) {
}
}

public void validateUpdatable() {
public void validateStatusUpdatable() {
if (isDeleted()) {
throw new CustomException(MEMBER_DELETED);
}
Expand Down

0 comments on commit b8d8fa0

Please sign in to comment.