make back compatible

This commit is contained in:
2021-04-16 22:02:25 +02:00
parent aa0b81023f
commit 1bbd3879fe
8 changed files with 83 additions and 114 deletions

View File

@@ -2,7 +2,8 @@ package internal
func RunCron() error {
c := GetConfig()
for _, l := range c.Locations {
for name, l := range c.Locations {
l.name = name
if err := l.RunCron(); err != nil {
return err
}