Fixed a bug in KoreaderHash lookup

This commit is contained in:
Joseph Milazzo 2024-10-27 09:49:35 -05:00
parent 231db28a5e
commit 3b61fd2536

View file

@ -39,7 +39,6 @@ public class MangaFileRepository : IMangaFileRepository
if (string.IsNullOrEmpty(hash)) return null;
return await _context.MangaFile
.FirstOrDefaultAsync(f => !string.IsNullOrEmpty(f.KoreaderHash)
&& f.KoreaderHash.Equals(hash, System.StringComparison.CurrentCultureIgnoreCase));
.FirstOrDefaultAsync(f => f.KoreaderHash != null && f.KoreaderHash.Equals(hash, System.StringComparison.CurrentCultureIgnoreCase));
}
}