mirror of
https://github.com/cooperspencer/gickup
synced 2024-09-18 23:01:35 +02:00
Push notification not on all runs (#152)
* added gotify and ntfy to notify * added new example config * use push config in all configs
This commit is contained in:
parent
25288d6df2
commit
2e75d80540
5
main.go
5
main.go
@ -82,6 +82,11 @@ func readConfigFile(configfile string) []*types.Conf {
|
||||
}
|
||||
|
||||
if !reflect.ValueOf(c).IsZero() {
|
||||
if len(conf) > 0 {
|
||||
if len(c.Metrics.PushConfigs.Gotify) == 0 && len(c.Metrics.PushConfigs.Ntfy) == 0 {
|
||||
c.Metrics.PushConfigs = conf[0].Metrics.PushConfigs
|
||||
}
|
||||
}
|
||||
conf = append(conf, c)
|
||||
i++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user