fix: explicitly set Setting key when updating a settings (#37)
This commit is contained in:
committed by
GitHub
parent
e79dcb13f0
commit
bbc373a354
1
unifi/setting_doh.generated.go
generated
1
unifi/setting_doh.generated.go
generated
@@ -86,6 +86,7 @@ func (c *client) GetSettingDoh(ctx context.Context, site string) (*SettingDoh, e
|
||||
|
||||
// Update SettingDoh Experimental! This function is not yet stable and may change in the future.
|
||||
func (c *client) UpdateSettingDoh(ctx context.Context, site string, s *SettingDoh) (*SettingDoh, error) {
|
||||
s.Key = SettingDohKey
|
||||
result, err := c.SetSetting(ctx, site, SettingDohKey, s)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user