Skip to content

Commit

Permalink
Merge pull request #40 from arajendiran/patch-2
Browse files Browse the repository at this point in the history
Fix wrong http method name for subscription update
  • Loading branch information
subomi committed Apr 5, 2024
2 parents 6a0dc14 + 64d399f commit 7a88047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (s *Subscription) Update(ctx context.Context, subscriptionId string, body *
}

respPtr := &SubscriptionResponse{}
err = postJSON(ctx, s.client, url, body, respPtr)
err = putResource(ctx, s.client, url, body, respPtr)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7a88047

Please sign in to comment.