1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-24 00:37:15 +00:00

Fixed: Backup interval is updated on change

Closes #4207
This commit is contained in:
Mark McDowall 2020-12-31 11:42:00 -08:00
parent ca34f64eb0
commit e5e86680c8

View file

@ -158,7 +158,10 @@ namespace NzbDrone.Core.Jobs
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 });
} }
} }
} }