aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-10-09 23:19:24 +0000
committerJPVenson <github@jpb.email>2024-10-09 23:19:24 +0000
commit2955f2f56275fca01cd3f586b3475dcdfbea78ed (patch)
treec9202c3ad903e704058c9d9b745ef90d1c150ca9 /Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs
parenteb601e944cd392a8007b540ab5627977a37368c6 (diff)
Fixed AncestorIds and applied review comments
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs')
-rw-r--r--Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs b/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs
index 70c5ff1e2..d2034f6c5 100644
--- a/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs
+++ b/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs
@@ -40,7 +40,7 @@ public class MediaAttachmentRepository(IDbContextFactory<JellyfinDbContext> dbPr
query = query.Where(e => e.Index == filter.Index);
}
- return query.ToList().Select(Map).ToImmutableArray();
+ return query.AsEnumerable().Select(Map).ToImmutableArray();
}
private MediaAttachment Map(AttachmentStreamInfo attachment)