Fixed: Backup interval is updated on change

(cherry picked from commit e5e86680c8f99687d3b95765be1c414cd1090191)
pull/1860/head
Mark McDowall 3 years ago committed by Qstick
parent cb8482921f
commit bb8ec05650

@ -156,7 +156,10 @@ namespace NzbDrone.Core.Jobs
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…
Cancel
Save