mirror of
https://github.com/TwiN/gatus.git
synced 2025-08-17 18:32:21 +02:00
fix default
This commit is contained in:
@@ -57,7 +57,7 @@ func ParseWithDefaultAlert(providerDefaultAlert, endpointAlert *alert.Alert) {
|
|||||||
if endpointAlert.SuccessThreshold == 0 {
|
if endpointAlert.SuccessThreshold == 0 {
|
||||||
endpointAlert.SuccessThreshold = providerDefaultAlert.SuccessThreshold
|
endpointAlert.SuccessThreshold = providerDefaultAlert.SuccessThreshold
|
||||||
}
|
}
|
||||||
if endpointAlert.RepeatInterval > 0 {
|
if endpointAlert.RepeatInterval == 0 {
|
||||||
endpointAlert.RepeatInterval = providerDefaultAlert.RepeatInterval
|
endpointAlert.RepeatInterval = providerDefaultAlert.RepeatInterval
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user