Skip to content

Commit

Permalink
Merge pull request #9 from STLVRTX/master
Browse files Browse the repository at this point in the history
additional fix alert source supporthours check
  • Loading branch information
yacut authored Jul 12, 2022
2 parents 5fc572b + cd255cb commit d4eff3e
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 @@ -540,7 +540,7 @@ func (c *Client) UpdateAlertSource(input *UpdateAlertSourceInput) (*UpdateAlertS
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.4"
const Version = "v2.0.5"

0 comments on commit d4eff3e

Please sign in to comment.