fix: explicitly set Setting key when updating a settings (#37)
This commit is contained in:
committed by
GitHub
parent
e79dcb13f0
commit
bbc373a354
@@ -104,7 +104,7 @@ func (c *client) SetSetting(ctx context.Context, site, key string, reqBody inter
|
||||
Meta Meta `json:"meta"`
|
||||
Data []json.RawMessage `json:"data"`
|
||||
}
|
||||
err := c.Post(ctx, fmt.Sprintf("s/%s/set/setting/%s", site, key), reqBody, &respBody)
|
||||
err := c.Put(ctx, fmt.Sprintf("s/%s/set/setting/%s", site, key), reqBody, &respBody)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user