Browse Source

properly isolate library folders between library paths (#1642)

pull/1643/head
Jason Dove 1 year ago committed by GitHub
parent
commit
56988be57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ErsatzTV.Infrastructure/Data/Repositories/LibraryRepository.cs

2
ErsatzTV.Infrastructure/Data/Repositories/LibraryRepository.cs

@ -166,7 +166,7 @@ public class LibraryRepository : ILibraryRepository @@ -166,7 +166,7 @@ public class LibraryRepository : ILibraryRepository
// load from db or create new folder
LibraryFolder knownFolder = await libraryPath.LibraryFolders
.Filter(f => f.Path == folder)
.Filter(f => f.Path == folder && f.LibraryPathId == libraryPath.Id)
.HeadOrNone()
.IfNoneAsync(CreateNewFolder(libraryPath, maybeParentFolder, folder));

Loading…
Cancel
Save