Fixed: Task Error due to Not Found in Scheduled Tasks

pull/4362/head
Qstick 5 years ago
parent 91b5e359bd
commit a0fe43cd6e

@ -194,10 +194,10 @@ namespace NzbDrone.Core.Jobs
var netImport = _scheduledTaskRepository.GetDefinition(typeof(NetImportSyncCommand)); var netImport = _scheduledTaskRepository.GetDefinition(typeof(NetImportSyncCommand));
netImport.Interval = _configService.NetImportSyncInterval; netImport.Interval = _configService.NetImportSyncInterval;
var checkForFinishedDownloads = _scheduledTaskRepository.GetDefinition(typeof(CheckForFinishedDownloadCommand)); var refreshMonitoredDownloads = _scheduledTaskRepository.GetDefinition(typeof(RefreshMonitoredDownloadsCommand));
checkForFinishedDownloads.Interval = _configService.CheckForFinishedDownloadInterval; refreshMonitoredDownloads.Interval = _configService.CheckForFinishedDownloadInterval;
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, netImport, checkForFinishedDownloads }); _scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, netImport, refreshMonitoredDownloads });
} }
} }
} }

Loading…
Cancel
Save