1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 12:02:35 +02:00

Fixed: Task Error due to Not Found in Scheduled Tasks

This commit is contained in:
Qstick 2020-04-25 16:50:17 -04:00
parent 91b5e359bd
commit a0fe43cd6e

View File

@ -194,10 +194,10 @@ public void HandleAsync(ConfigSavedEvent message)
var netImport = _scheduledTaskRepository.GetDefinition(typeof(NetImportSyncCommand));
netImport.Interval = _configService.NetImportSyncInterval;
var checkForFinishedDownloads = _scheduledTaskRepository.GetDefinition(typeof(CheckForFinishedDownloadCommand));
checkForFinishedDownloads.Interval = _configService.CheckForFinishedDownloadInterval;
var refreshMonitoredDownloads = _scheduledTaskRepository.GetDefinition(typeof(RefreshMonitoredDownloadsCommand));
refreshMonitoredDownloads.Interval = _configService.CheckForFinishedDownloadInterval;
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, netImport, checkForFinishedDownloads });
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, netImport, refreshMonitoredDownloads });
}
}
}