Set d.Key for all settings updates

This commit is contained in:
Kurt McAlpine
2021-04-06 10:48:56 +12:00
committed by Paul Tyng
parent ac8d0c5659
commit bd8898db77
32 changed files with 157 additions and 1 deletions

View File

@@ -160,6 +160,7 @@ func (c *Client) updateSettingUsg(ctx context.Context, site string, d *SettingUs
Data []SettingUsg `json:"data"`
}
d.Key = "usg"
err := c.do(ctx, "PUT", fmt.Sprintf("s/%s/set/setting/usg", site), d, &respBody)
if err != nil {
return nil, err