You've already forked Sonarr
							
							
				mirror of
				https://github.com/Sonarr/Sonarr.git
				synced 2025-10-31 00:07:55 +02:00 
			
		
		
		
	update interval for existing tasks.
This commit is contained in:
		| @@ -60,14 +60,11 @@ namespace NzbDrone.Core.Jobs | ||||
|  | ||||
|             foreach (var defaultTask in defaultTasks) | ||||
|             { | ||||
|                 var currentDefinition = currentTasks.SingleOrDefault(c => c.TypeName == defaultTask.TypeName); | ||||
|                 var currentDefinition = currentTasks.SingleOrDefault(c => c.TypeName == defaultTask.TypeName) ?? defaultTask; | ||||
|  | ||||
|                 if (currentDefinition == null) | ||||
|                 { | ||||
|                     currentDefinition = defaultTask; | ||||
|                     _scheduledTaskRepository.Upsert(currentDefinition); | ||||
|                 } | ||||
|                 currentDefinition.Interval = defaultTask.Interval; | ||||
|  | ||||
|                 _scheduledTaskRepository.Upsert(currentDefinition); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user