Skip to content

Commit

Permalink
Merge pull request #45 from bradbeam/patchactivity
Browse files Browse the repository at this point in the history
fix: Use proper return code(200) for PatchApplicationActivity
  • Loading branch information
bradbeam authored Aug 9, 2021
2 parents 7450aab + 392e760 commit 24767df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/applications/v2/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func (h *httpAPI) PatchApplicationActivity(ctx context.Context, u string, a Acti
}

switch resp.StatusCode {
case http.StatusCreated, http.StatusAccepted:
case http.StatusOK:
return nil
default:
return api.NewUnexpectedError(resp, body)
Expand Down

0 comments on commit 24767df

Please sign in to comment.