Skip to content

Commit

Permalink
Fixing a mistake in the teams update function (#27)
Browse files Browse the repository at this point in the history
fixing a mistake in the teams update function

Signed-off-by: Lasse Gaardsholt <lasse.gaardsholt@bestseller.com>
  • Loading branch information
Gaardsholt authored Feb 10, 2023
1 parent e781e75 commit 9ba3b73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions teams/Update.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (
)

type Update struct {
Name string `json:"name"`
Name string `json:"name"`
Description string `json:"description"`
}

func (c *TeamsClient) Update(TeamId int, lo Update) (*TeamGetResult, error) {
req, err := c.client.NewRequest("PATCH", fmt.Sprintf("/v1/teams/secrets/%d", TeamId), nil)
req, err := c.client.NewRequest("PATCH", fmt.Sprintf("/v1/teams/%d", TeamId), nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9ba3b73

Please sign in to comment.