mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07: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 @@ 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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue