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

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