From f772a60bc34932341ea061a07951c3d09423c58f Mon Sep 17 00:00:00 2001 From: Jamie Date: Tue, 27 Aug 2019 21:49:26 +0100 Subject: [PATCH] Fixed the issue when we are logging errors in the logs incorrectly --- src/Ombi.Schedule/Jobs/Radarr/RadarrSync.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Ombi.Schedule/Jobs/Radarr/RadarrSync.cs b/src/Ombi.Schedule/Jobs/Radarr/RadarrSync.cs index 6fa4c1bc8..56499aea6 100644 --- a/src/Ombi.Schedule/Jobs/Radarr/RadarrSync.cs +++ b/src/Ombi.Schedule/Jobs/Radarr/RadarrSync.cs @@ -56,7 +56,9 @@ namespace Ombi.Schedule.Jobs.Radarr var movieIds = new List(); foreach (var m in movies) { - if (m.tmdbId > 0 && m.monitored) + if(m.monitored) + { + if (m.tmdbId > 0) { movieIds.Add(new RadarrCache { @@ -69,6 +71,7 @@ namespace Ombi.Schedule.Jobs.Radarr Logger.LogError("TMDBId is not > 0 for movie {0}", m.title); } } + } using (var tran = await _ctx.Database.BeginTransactionAsync()) {