diff --git a/server/src/services/library.service.ts b/server/src/services/library.service.ts index 79ce188a7..a8c5affb8 100644 --- a/server/src/services/library.service.ts +++ b/server/src/services/library.service.ts @@ -631,11 +631,16 @@ export class LibraryService extends EventEmitter { this.logger.log(`Refreshing library: ${job.id}`); const validImportPaths: string[] = []; + console.warn('importPaths', library.importPaths); + console.warn('importPaths', library.importPaths[0]); + + for (const importPath of library.importPaths) { + console.warn('importPath', importPath); - for (const importPath in library.importPaths) { const validation = await this.validateImportPath(importPath); if (validation.isValid) { - validImportPaths.push(path.normalize(validation.importPath)); + validImportPaths.push(path.normalize(importPath)); + console.warn('validImportPaths', importPath); } else { this.logger.error(`Skipping invalid import path: ${importPath}. Reason: ${validation.message}`); }