fix: add missing libraryService.js and fix two bugs

- Create missing src/services/libraryService.js (was imported but never created)
- Fix readJSONFile import in tagIndexer.js (unused import)
- Fix found.found?.libId typo in deleteDocument (double .found lookup)

These were blocking the application from starting.
This commit is contained in:
Erwin
2026-03-28 03:31:14 +00:00
parent 825dfba2a7
commit 8b0b60db33
4 changed files with 583 additions and 2 deletions

View File

@@ -276,7 +276,6 @@ export class DocumentService {
}
const meta = readJSON(found.metaPath);
deletePath(found.found?.libId ? join(this.librariesPath, found.libId, 'documents', docId) : null);
deletePath(this._docPath(found.libId, docId));
this.tagIndexer.removeDocument(docId);