Skip to content

Commit

Permalink
Fix payload for updating account domains
Browse files Browse the repository at this point in the history
We want to pass the entire payload, not just the sub-element.
  • Loading branch information
mitchnielsen committed Feb 28, 2025
1 parent 8a2f3d8 commit ffec34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (c *AccountsClient) UpdateDomains(ctx context.Context, data api.AccountDoma
cfg := requestConfig{
method: http.MethodPatch,
url: c.routePrefix + "domains",
body: data.DomainNames,
body: data,
apiKey: c.apiKey,
basicAuthKey: c.basicAuthKey,
successCodes: successCodesStatusNoContent,
Expand Down

0 comments on commit ffec34f

Please sign in to comment.