diff --git a/ErsatzTV.Infrastructure/Data/Repositories/MediaSourceRepository.cs b/ErsatzTV.Infrastructure/Data/Repositories/MediaSourceRepository.cs index 98a039ac2..27aa394f4 100644 --- a/ErsatzTV.Infrastructure/Data/Repositories/MediaSourceRepository.cs +++ b/ErsatzTV.Infrastructure/Data/Repositories/MediaSourceRepository.cs @@ -171,6 +171,7 @@ public class MediaSourceRepository(IDbContextFactory dbContextFactory foreach (PlexLibrary incoming in toUpdate) { Option maybeExisting = await dbContext.PlexLibraries + .Where(pl => pl.MediaSourceId == plexMediaSourceId) .Include(l => l.Paths) .SingleOrDefaultAsync(l => l.Key == incoming.Key, cancellationToken);