1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-25 07:12:40 +00:00

Fixed: Backup interval is updated on change

(cherry picked from commit e5e86680c8f99687d3b95765be1c414cd1090191)
This commit is contained in:
Mark McDowall 2020-12-31 11:42:00 -08:00 committed by Qstick
parent cb8482921f
commit bb8ec05650

View file

@ -156,7 +156,10 @@ public void HandleAsync(ConfigSavedEvent message)
var rss = _scheduledTaskRepository.GetDefinition(typeof(RssSyncCommand)); var rss = _scheduledTaskRepository.GetDefinition(typeof(RssSyncCommand));
rss.Interval = _configService.RssSyncInterval; rss.Interval = _configService.RssSyncInterval;
_scheduledTaskRepository.Update(rss); var backup = _scheduledTaskRepository.GetDefinition(typeof(BackupCommand));
backup.Interval = _configService.BackupInterval;
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask>{ rss, backup });
} }
} }
} }