From ae23f73810f8ce700b9bd9341934e6378a542c92 Mon Sep 17 00:00:00 2001 From: Mateusz Filipowicz Date: Fri, 21 Feb 2025 15:59:06 +0100 Subject: [PATCH] fix: passing setting response body as pointer to Post method (#34) --- unifi/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unifi/setting.go b/unifi/setting.go index 7aa0017..4fa220a 100644 --- a/unifi/setting.go +++ b/unifi/setting.go @@ -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 }