diff options
| author | JPVenson <github@jpb.email> | 2024-10-09 23:58:55 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-10-09 23:58:55 +0000 |
| commit | 2c2e33dd82de89ce2bc0fe664f5c753e42a716bc (patch) | |
| tree | f329047cf908c2f2e089b6814951c2581babd4f3 /Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs | |
| parent | fe9c96d052d6815f0d32833711a865c2f33d9999 (diff) | |
Updated .AsNoTracking() where applicable
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs b/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs index d2034f6c5..c6488f321 100644 --- a/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs +++ b/Jellyfin.Server.Implementations/Item/MediaAttachmentRepository.cs @@ -34,7 +34,7 @@ public class MediaAttachmentRepository(IDbContextFactory<JellyfinDbContext> dbPr public IReadOnlyList<MediaAttachment> GetMediaAttachments(MediaAttachmentQuery filter) { using var context = dbProvider.CreateDbContext(); - var query = context.AttachmentStreamInfos.Where(e => e.ItemId.Equals(filter.ItemId)); + var query = context.AttachmentStreamInfos.AsNoTracking().Where(e => e.ItemId.Equals(filter.ItemId)); if (filter.Index.HasValue) { query = query.Where(e => e.Index == filter.Index); |
