Fix:Browse folders when adding new library folder crashing server #2065

This commit is contained in:
advplyr 2023-09-09 07:47:17 -05:00
parent aec45d04f7
commit b09b95ef24

View File

@ -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, '')