mirror of
https://github.com/Radarr/Radarr
synced 2025-12-27 10:45:44 +01:00
update taskscheduler when config is saved with netimportsynccommand
This commit is contained in:
parent
b6e4f53597
commit
d458c4ecc8
1 changed files with 4 additions and 1 deletions
|
|
@ -181,7 +181,10 @@ public void HandleAsync(ConfigSavedEvent message)
|
|||
var downloadedEpisodes = _scheduledTaskRepository.GetDefinition(typeof(DownloadedEpisodesScanCommand));
|
||||
downloadedEpisodes.Interval = _configService.DownloadedEpisodesScanInterval;
|
||||
|
||||
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, downloadedEpisodes });
|
||||
var netImport = _scheduledTaskRepository.GetDefinition(typeof(NetImportSyncCommand));
|
||||
netImport.Interval = _configService.NetImportSyncInterval;
|
||||
|
||||
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, downloadedEpisodes, netImport });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue