Skip to content

Commit

Permalink
Fixed a bug in KoreaderHash lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 committed Oct 27, 2024
1 parent 231db28 commit 3b61fd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions API/Data/Repositories/MangaFileRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public async Task<IList<MangaFile>> GetAllWithMissingExtension()
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));
}
}

0 comments on commit 3b61fd2

Please sign in to comment.