Fixed the issue when we are logging errors in the logs incorrectly

pull/3200/head
Jamie 5 years ago committed by GitHub
parent 56c7cf973d
commit f772a60bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,7 +56,9 @@ namespace Ombi.Schedule.Jobs.Radarr
var movieIds = new List<RadarrCache>();
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())
{

Loading…
Cancel
Save