mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix:Browse folders when adding new library folder crashing server #2065
This commit is contained in:
		
							parent
							
								
									aec45d04f7
								
							
						
					
					
						commit
						b09b95ef24
					
				| @ -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, '') | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user