Skip to content

Commit

Permalink
๐Ÿ”€Merge : Main Merge 30์ฐจ (#145)
Browse files Browse the repository at this point in the history
* ๐Ÿ› Hotfix: ๋ชจ๋ธ ์ƒ์„ธ ์ •๋ณด ์กฐํšŒ ์„ฑ๋Šฅ response ์ถ”๊ฐ€

* ๐Ÿ‘” ํƒˆํ‡ดํ•œ ํšŒ์› ์ œ๊ฑฐ ๋กœ์ง ์ถ”๊ฐ€

* ๐Ÿ› Hotfix: ๋ชจ๋ธ ์ƒ์„ธ ์ •๋ณด ์กฐํšŒ ์„ฑ๋Šฅ response ์ถ”๊ฐ€

* ๐Ÿ› Hotfix: ์‚ฌ์šฉ์ž ๊ฐœ์ธ์ •๋ณด ์ˆ˜์ • ๋กœ์ง ์ˆ˜์ • (#144)
  • Loading branch information
joowojr authored May 16, 2024
1 parent 068bf64 commit 4f1ec78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main/java/com/codez4/meetfolio/domain/member/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,15 @@ public void withdraw(){
/**
* update
*/
public void update(MemberRequest.Patch request) {
this.password = Password.encrypt(request.getPassword(), ENCODER);
public void updateInfo(MemberRequest.Patch request) {
this.major = request.getMajor();
this.grade = Grade.convert(request.getGrade());
this.jobKeyword = JobKeyword.convert(request.getJobKeyword());
}

public void updatePassword(String password){
this.password = Password.encrypt(password, ENCODER);
}

public void setPoint(int point){
this.point = point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ public MemberResponse.MemberProc post(MemberRequest.Post post) {
}

public MemberResponse.MemberProc update(Member member, MemberRequest.Patch patch) {
member.update(patch);
if(patch.getPassword()!=null){
member.updatePassword(patch.getPassword());
}
member.updateInfo(patch);
return MemberResponse.toMemberProc(member);
}

Expand Down

0 comments on commit 4f1ec78

Please sign in to comment.