Browse Source

feedback

pull/2783/head
Jason Dove 7 months ago
parent
commit
e71c7b0300
No known key found for this signature in database
  1. 1
      ErsatzTV.Infrastructure/Data/Repositories/MediaSourceRepository.cs

1
ErsatzTV.Infrastructure/Data/Repositories/MediaSourceRepository.cs

@ -171,6 +171,7 @@ public class MediaSourceRepository(IDbContextFactory<TvContext> dbContextFactory @@ -171,6 +171,7 @@ public class MediaSourceRepository(IDbContextFactory<TvContext> dbContextFactory
foreach (PlexLibrary incoming in toUpdate)
{
Option<PlexLibrary> maybeExisting = await dbContext.PlexLibraries
.Where(pl => pl.MediaSourceId == plexMediaSourceId)
.Include(l => l.Paths)
.SingleOrDefaultAsync(l => l.Key == incoming.Key, cancellationToken);

Loading…
Cancel
Save