From 50f9f6e884b869d0ba5e49656877bba29d8c1f1e Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 31 Dec 2020 11:42:00 -0800 Subject: [PATCH] Fixed: Backup interval is updated on change (cherry picked from commit e5e86680c8f99687d3b95765be1c414cd1090191) --- src/NzbDrone.Core/Jobs/TaskManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Jobs/TaskManager.cs b/src/NzbDrone.Core/Jobs/TaskManager.cs index 4e7b1b8d8..38046e641 100644 --- a/src/NzbDrone.Core/Jobs/TaskManager.cs +++ b/src/NzbDrone.Core/Jobs/TaskManager.cs @@ -156,7 +156,10 @@ namespace NzbDrone.Core.Jobs var rss = _scheduledTaskRepository.GetDefinition(typeof(RssSyncCommand)); rss.Interval = _configService.RssSyncInterval; - _scheduledTaskRepository.Update(rss); + var backup = _scheduledTaskRepository.GetDefinition(typeof(BackupCommand)); + backup.Interval = _configService.BackupInterval; + + _scheduledTaskRepository.UpdateMany(new List{ rss, backup }); } } }