Skip to content

Commit

Permalink
bugfix: Status Code was wrong
Browse files Browse the repository at this point in the history
Signed-off-by: Lasse Gaardsholt <lasse.gaardsholt@bestseller.com>
  • Loading branch information
Gaardsholt committed Jan 4, 2023
1 parent f2cfa8e commit d941285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teams/AddMember.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (c *TeamsClient) AddMember(TeamId int, lo TeamsAddMemberOptions) (*ListMemb
}
defer r.Body.Close()

if r.StatusCode != http.StatusOK {
if r.StatusCode != http.StatusCreated {
bodyBytes, _ := io.ReadAll(r.Body)
r.Body = io.NopCloser(bytes.NewBuffer(bodyBytes))

Expand Down

0 comments on commit d941285

Please sign in to comment.