fix default

This commit is contained in:
Jackson Sabey 2024-08-31 15:07:36 -07:00
parent f83ce9993f
commit f52432aa4b

View File

@ -57,7 +57,7 @@ func ParseWithDefaultAlert(providerDefaultAlert, endpointAlert *alert.Alert) {
if endpointAlert.SuccessThreshold == 0 {
endpointAlert.SuccessThreshold = providerDefaultAlert.SuccessThreshold
}
if endpointAlert.RepeatInterval > 0 {
if endpointAlert.RepeatInterval == 0 {
endpointAlert.RepeatInterval = providerDefaultAlert.RepeatInterval
}
}