mirror of https://github.com/Radarr/Radarr
update taskscheduler when config is saved with netimportsynccommand
This commit is contained in:
parent
b6e4f53597
commit
d458c4ecc8
|
@ -181,7 +181,10 @@ namespace NzbDrone.Core.Jobs
|
||||||
var downloadedEpisodes = _scheduledTaskRepository.GetDefinition(typeof(DownloadedEpisodesScanCommand));
|
var downloadedEpisodes = _scheduledTaskRepository.GetDefinition(typeof(DownloadedEpisodesScanCommand));
|
||||||
downloadedEpisodes.Interval = _configService.DownloadedEpisodesScanInterval;
|
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 New Issue