Skip to content

Commit

Permalink
fix: 컴파일 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jundonghyuk committed Mar 7, 2024
1 parent 28047ca commit c343160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ private void validatePassword(Member member, String password) {
public void deleteMember(Long memberId) {
Member member = memberRepository.getById(memberId);
member.delete();
}

@Transactional(readOnly = true)
public MemberInfoResponse findMemberInfo(Long memberId) {
Member member = memberRepository.getById(memberId);

return new MemberInfoResponse(member.getName(), member.getEmail());
}

@Transactional
public void changePassword(Long memberId, PasswordChangeRequest dto) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public boolean checkPassword(String password) {

public void delete() {
deleted = Boolean.TRUE;
}

public void changePassword(String previousPassword, String newPassword) {
if (checkPassword(previousPassword)) {
Expand Down

0 comments on commit c343160

Please sign in to comment.