Skip to content

Commit

Permalink
Fix group membership for peers API response (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon authored and surik committed Dec 14, 2023
1 parent 64abfa8 commit fa6197f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/http/peers_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func toGroupsInfo(groups map[string]*server.Group, peerID string) []api.GroupMin
}
groupsChecked[group.ID] = struct{}{}
for _, pk := range group.Peers {
if pk != peerID {
if pk == peerID {
info := api.GroupMinimum{
Id: group.ID,
Name: group.Name,
Expand Down

0 comments on commit fa6197f

Please sign in to comment.