From 9dfeacff191e1e9476c6f601a287375586da78c8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 26 Jul 2024 00:18:06 -0400 Subject: [PATCH] Apply suggestions from code review --- .../Migration/210_add_monitored_seasons_filter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Datastore/Migration/210_add_monitored_seasons_filter.cs b/src/NzbDrone.Core/Datastore/Migration/210_add_monitored_seasons_filter.cs index 24d75c7e0..8421dbeff 100644 --- a/src/NzbDrone.Core/Datastore/Migration/210_add_monitored_seasons_filter.cs +++ b/src/NzbDrone.Core/Datastore/Migration/210_add_monitored_seasons_filter.cs @@ -22,7 +22,7 @@ namespace NzbDrone.Core.Datastore.Migration using (var getUnmonitoredSeasonFilter = conn.CreateCommand()) { getUnmonitoredSeasonFilter.Transaction = tran; - getUnmonitoredSeasonFilter.CommandText = "SELECT \"Id\", \"Filters\" FROM \"CustomFilters\""; + getUnmonitoredSeasonFilter.CommandText = "SELECT \"Id\", \"Filters\" FROM \"CustomFilters\" WHERE \"Type\" = 'series'"; using (var reader = getUnmonitoredSeasonFilter.ExecuteReader()) { @@ -68,9 +68,9 @@ namespace NzbDrone.Core.Datastore.Migration } } } - - var updateSql = "UPDATE \"CustomFilters\" SET \"Filters\" = @Filters WHERE \"Id\" = @Id"; - conn.Execute(updateSql, updated, transaction: tran); } + + var updateSql = "UPDATE \"CustomFilters\" SET \"Filters\" = @Filters WHERE \"Id\" = @Id"; + conn.Execute(updateSql, updated, transaction: tran); } }