Apply suggestions from code review

This commit is contained in:
Mark McDowall 2024-07-26 00:18:06 -04:00 committed by GitHub
parent 8f7147d17e
commit 9dfeacff19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}