Skip to content

Commit

Permalink
feat: 멤버 찾을때 나는 제외하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
soyesenna committed Nov 14, 2024
1 parent 585fbdc commit d1820a9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ public Member findMemberByTag(String tag){
public MemberFindGetResponse findMembersByTag(String tag) {
MemberFindGetResponse memberFindGetResponse = MemberFindGetResponse.empty();

this.memberRepository.findByTagContaining(tag).forEach(memberFindGetResponse::add);
this.memberRepository.findByTagContaining(tag)
.stream()
.filter(member -> !member.getTag().equals(tag))
.forEach(memberFindGetResponse::add);
return memberFindGetResponse;
}

Expand Down

0 comments on commit d1820a9

Please sign in to comment.