mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
update taskscheduler when config is saved with netimportsynccommand
This commit is contained in:
@@ -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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user