Skip to content

Commit

Permalink
We currently do not support clearing teams from an escalation policy.
Browse files Browse the repository at this point in the history
This commit fixes that by sending an empty list instead of ignoring
the field if it's not set.
  • Loading branch information
heimweh committed Aug 29, 2019
1 parent 768e5bc commit 1ee4965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion escalation_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type EscalationPolicy struct {
EscalationRules []EscalationRule `json:"escalation_rules,omitempty"`
Services []APIObject `json:"services,omitempty"`
NumLoops uint `json:"num_loops,omitempty"`
Teams []APIReference `json:"teams,omitempty"`
Teams []APIReference `json:"teams"`
Description string `json:"description,omitempty"`
RepeatEnabled bool `json:"repeat_enabled,omitempty"`
}
Expand Down

0 comments on commit 1ee4965

Please sign in to comment.