Updated .AsNoTracking() where applicable

This commit is contained in:
JPVenson
2024-10-09 23:58:55 +00:00
parent fe9c96d052
commit 2c2e33dd82
4 changed files with 10 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ public class MediaStreamRepository(IDbContextFactory<JellyfinDbContext> dbProvid
public IReadOnlyList<MediaStream> GetMediaStreams(MediaStreamQuery filter)
{
using var context = dbProvider.CreateDbContext();
return TranslateQuery(context.MediaStreamInfos, filter).AsEnumerable().Select(Map).ToImmutableArray();
return TranslateQuery(context.MediaStreamInfos.AsNoTracking(), filter).AsEnumerable().Select(Map).ToImmutableArray();
}
private string? GetPathToSave(string? path)