Skip to content

Commit

Permalink
Merge pull request #8 from STLVRTX/master
Browse files Browse the repository at this point in the history
fix alert source supporthours check
  • Loading branch information
krystianity authored Jul 12, 2022
2 parents 0b5c370 + 667349a commit 5fc572b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alertsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (c *Client) CreateAlertSource(input *CreateAlertSourceInput) (*CreateAlertS
input.AlertSource.IncidentPriorityRule = ""
}

if input.AlertSource.SupportHours.AutoRaiseIncidents {
if input.AlertSource.SupportHours != nil && input.AlertSource.SupportHours.AutoRaiseIncidents {
input.AlertSource.SupportHours.AutoRaiseAlerts = true
input.AlertSource.SupportHours.AutoRaiseIncidents = false
}
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ilert

// Version package version
const Version = "v2.0.3"
const Version = "v2.0.4"

0 comments on commit 5fc572b

Please sign in to comment.