forked from Cutlery/immich
fix comments
This commit is contained in:
parent
52a19b6f1f
commit
2d40c85a54
@ -625,16 +625,15 @@ export class LibraryService extends EventEmitter {
|
||||
library.importPaths.map((importPath) => this.validateImportPath(importPath)),
|
||||
);
|
||||
|
||||
const validImportPaths = pathValidation
|
||||
.map((validation) => {
|
||||
if (!validation.isValid) {
|
||||
let validImportPaths: string[] = [];
|
||||
|
||||
for (const validation of pathValidation) {
|
||||
if (validation.isValid) {
|
||||
validImportPaths.push(path.normalize(validation.importPath));
|
||||
} else {
|
||||
this.logger.error(`Skipping invalid import path: ${validation.importPath}. Reason: ${validation.message}`);
|
||||
}
|
||||
return validation;
|
||||
})
|
||||
.filter((validation) => validation.isValid)
|
||||
.map((validation) => validation.importPath)
|
||||
.map((importPath) => path.normalize(importPath));
|
||||
}
|
||||
|
||||
const crawledAssets = this.storageRepository.walk({
|
||||
pathsToCrawl: validImportPaths,
|
||||
|
@ -404,7 +404,6 @@
|
||||
<MenuOption on:click={() => onScanSettingClicked()} text="Scan Settings" />
|
||||
<hr />
|
||||
<MenuOption on:click={() => onScanNewLibraryClicked()} text="Scan New Library Files" />
|
||||
|
||||
<MenuOption
|
||||
on:click={() => onScanAllLibraryFilesClicked()}
|
||||
text="Re-scan All Library Files"
|
||||
|
Loading…
x
Reference in New Issue
Block a user