Skip to content

Commit

Permalink
Merge pull request #88 from yanyanho/main
Browse files Browse the repository at this point in the history
fix the bug
  • Loading branch information
yanyanho committed Dec 13, 2023
2 parents 4eccf33 + 72b0a88 commit 60e5b5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/dl/officialsite/member/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public MemberWithTeam getMemberWithTeamInfoByAddress(String address) {
if(member.isPresent()) {
MemberWithTeam memberWithTeam = new MemberWithTeam();
BeanUtils.copyProperties(member, memberWithTeam);
ArrayList teams = memberWithTeam.getTeams();
ArrayList teams = new ArrayList();
List<TeamMember> teamMembers = teamMemberRepository.findByMemberId(member.get().getId());

teamMembers.stream().forEach(teamMember -> {
Expand All @@ -49,6 +49,7 @@ public MemberWithTeam getMemberWithTeamInfoByAddress(String address) {
}
teams.add(team);
});
memberWithTeam.setTeams(teams);
return memberWithTeam;
}
return null;
Expand Down

0 comments on commit 60e5b5f

Please sign in to comment.