Fixed a bug in the Plex Newsletter

This commit is contained in:
tidusjar 2017-03-06 20:54:31 +00:00
parent c3cba15b17
commit c95e7368ae
2 changed files with 21 additions and 4 deletions

View file

@ -25,6 +25,7 @@
// ***********************************************************************
#endregion
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
@ -61,7 +62,7 @@ namespace Ombi.Store
{
connection.Open();
var result = connection.Query<TableInfo>($"PRAGMA table_info({tableName});");
if (result.Any(x => x.name == newColumn))
if (result.Any(x => x.name.Equals(newColumn, StringComparison.CurrentCultureIgnoreCase)))
{
connection.Close();
return;