mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00:00
Fixed: Backup interval is updated on change
(cherry picked from commit e5e86680c8f99687d3b95765be1c414cd1090191)
This commit is contained in:
parent
cb8482921f
commit
bb8ec05650
1 changed files with 4 additions and 1 deletions
|
@ -156,7 +156,10 @@ public void HandleAsync(ConfigSavedEvent message)
|
|||
var rss = _scheduledTaskRepository.GetDefinition(typeof(RssSyncCommand));
|
||||
rss.Interval = _configService.RssSyncInterval;
|
||||
|
||||
_scheduledTaskRepository.Update(rss);
|
||||
var backup = _scheduledTaskRepository.GetDefinition(typeof(BackupCommand));
|
||||
backup.Interval = _configService.BackupInterval;
|
||||
|
||||
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask>{ rss, backup });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue