From 7824a78e85af1b9784c33eaf746e0e935dce0da7 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 29 Apr 2024 17:49:48 +0200 Subject: [PATCH] Cleanup image redownload --- back/src/Kyoo.Core/Controllers/MiscRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/src/Kyoo.Core/Controllers/MiscRepository.cs b/back/src/Kyoo.Core/Controllers/MiscRepository.cs index eb32ae8d..8b014840 100644 --- a/back/src/Kyoo.Core/Controllers/MiscRepository.cs +++ b/back/src/Kyoo.Core/Controllers/MiscRepository.cs @@ -62,7 +62,7 @@ public class MiscRepository( }.Select(x => GetSql(x)); string sql = string.Join(" union all ", queries); IEnumerable ret = await database.QueryAsync(sql); - return ret.Where(x => x != null).ToArray() as Image[]; + return ret.ToArray() as Image[]; } public async Task DownloadMissingImages()