Skip to content

Commit

Permalink
Merge pull request #240 from yanyanho/dev
Browse files Browse the repository at this point in the history
fix the role set
  • Loading branch information
yanyanho committed Apr 28, 2024
2 parents c67270d + 4982b0c commit ec0257a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ public BaseResponse updateMemberByAddress(@RequestParam String address, @Request
if (member.getTwitterStatus() != null) {
_member.setTwitterStatus(member.getTwitterStatus());
}
if (member.getRole() != _member.getRole()) {
_member.setRole(member.getRole());
}
return BaseResponse.successWithData(memberService.save(_member));
} else {
return BaseResponse.failWithReason("1001", "no user found");
Expand Down

0 comments on commit ec0257a

Please sign in to comment.