take last instead of first detected hash

This commit is contained in:
Stanley Dimant
2022-07-29 12:56:11 +02:00
parent 4ca2419f46
commit a486954248

View File

@@ -40,7 +40,7 @@ namespace MareSynchronos.Models
FileCache? fileCache;
using (FileCacheContext db = new())
{
fileCache = db.FileCaches.FirstOrDefault(f => f.Filepath == path.ToLower());
fileCache = db.FileCaches.LastOrDefault(f => f.Filepath == path.ToLower());
}
if (fileCache != null)