this was stupid

This commit is contained in:
13xforever 2018-08-06 00:28:30 +05:00 committed by Roberto Anić Banić
parent 2c1fa76266
commit 2ac9f90b57

View File

@ -59,6 +59,9 @@ namespace CompatBot.Database.Providers
public static string GetTitleName(string productCode)
{
if (string.IsNullOrEmpty(productCode))
return null;
using (var db = new ThumbnailDb())
{
var thumb = db.Thumbnail.FirstOrDefault(t => t.ProductCode == productCode.ToUpperInvariant());