Skip to content

Commit

Permalink
add the check for github id
Browse files Browse the repository at this point in the history
  • Loading branch information
liberhe committed Dec 27, 2023
1 parent 8db7925 commit 1eea18b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ public Predicate toPredicate(Root<Member> root, CriteriaQuery<?> criteriaQuery,
@PostMapping("/create")
public BaseResponse createMember(@Valid @RequestBody Member member, @RequestParam String address) {


if(member.getGithubId().equals("")) {
member.setGithubId(null);
}
MemberVo _member = memberService.save(member);
return BaseResponse.successWithData(_member);
}
Expand Down

0 comments on commit 1eea18b

Please sign in to comment.