fix: passing setting response body as pointer to Post method (#34)

This commit is contained in:
Mateusz Filipowicz
2025-02-21 15:59:06 +01:00
committed by GitHub
parent d665aceba2
commit ae23f73810

View File

@@ -82,7 +82,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.Post(ctx, fmt.Sprintf("s/%s/set/setting/%s", site, key), reqBody, &respBody)
if err != nil {
return nil, err
}