Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
fix: fixed groups
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Schlegel <[email protected]>
  • Loading branch information
siredmar committed Jan 24, 2024
1 parent c3d6ad9 commit c26752a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ type GroupPeers struct {
Name string `json:"name,omitempty"`
}

func (c *Client) ListGroups() (Groups, error) {
groups := Groups{}
func (c *Client) ListGroups() ([]Group, error) {
groups := []Group{}
body, err := c.doCall(http.MethodGet, "api/groups", nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit c26752a

Please sign in to comment.