From 56988be57bedfc4d0839556ded0070765ba2c681 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Sun, 10 Mar 2024 20:06:37 -0500 Subject: [PATCH] properly isolate library folders between library paths (#1642) --- ErsatzTV.Infrastructure/Data/Repositories/LibraryRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ErsatzTV.Infrastructure/Data/Repositories/LibraryRepository.cs b/ErsatzTV.Infrastructure/Data/Repositories/LibraryRepository.cs index 0f7364ae..4380a5f3 100644 --- a/ErsatzTV.Infrastructure/Data/Repositories/LibraryRepository.cs +++ b/ErsatzTV.Infrastructure/Data/Repositories/LibraryRepository.cs @@ -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));