From b09b95ef244ac5d12739fd0b98fc3387e89f3afa Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 9 Sep 2023 07:47:17 -0500 Subject: [PATCH] Fix:Browse folders when adding new library folder crashing server #2065 --- server/controllers/FileSystemController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/FileSystemController.js b/server/controllers/FileSystemController.js index b2f020ea..cee52cb2 100644 --- a/server/controllers/FileSystemController.js +++ b/server/controllers/FileSystemController.js @@ -17,7 +17,7 @@ class FileSystemController { }) // Do not include existing mapped library paths in response - const libraryFoldersPaths = await Database.libraryModelFolder.getAllLibraryFolderPaths() + const libraryFoldersPaths = await Database.libraryFolderModel.getAllLibraryFolderPaths() libraryFoldersPaths.forEach((path) => { let dir = path || '' if (dir.includes(global.appRoot)) dir = dir.replace(global.appRoot, '')