fix: explicitly set Setting key when updating a settings (#37)

This commit is contained in:
Mateusz Filipowicz
2025-02-23 14:00:19 +01:00
committed by GitHub
parent e79dcb13f0
commit bbc373a354
42 changed files with 42 additions and 1 deletions

View File

@@ -109,6 +109,7 @@ func (c *client) GetSettingMgmt(ctx context.Context, site string) (*SettingMgmt,
// Update SettingMgmt Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingMgmt(ctx context.Context, site string, s *SettingMgmt) (*SettingMgmt, error) {
s.Key = SettingMgmtKey
result, err := c.SetSetting(ctx, site, SettingMgmtKey, s)
if err != nil {
return nil, err