mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
improvements and logging to local image storage
This commit is contained in:
@@ -298,7 +298,7 @@ async function importEnex(taskContext, file, parentNote) {
|
||||
// save updated content with links to files/images
|
||||
await noteEntity.setContent(content);
|
||||
|
||||
await noteService.scanForLinks(noteEntity.noteId);
|
||||
await noteService.scanForLinks(noteEntity);
|
||||
|
||||
await updateDates(noteEntity.noteId, utcDateCreated, utcDateModified);
|
||||
}
|
||||
|
||||
@@ -430,7 +430,7 @@ async function importTar(taskContext, fileBuffer, importRootNote) {
|
||||
}
|
||||
|
||||
for (const noteId in createdNoteIds) { // now the noteIds are unique
|
||||
await noteService.scanForLinks(noteId);
|
||||
await noteService.scanForLinks(await repository.getNotes(noteId));
|
||||
|
||||
if (!metaFile) {
|
||||
// if there's no meta file then the notes are created based on the order in that tar file but that
|
||||
|
||||
@@ -451,7 +451,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
||||
});
|
||||
|
||||
for (const noteId in createdNoteIds) { // now the noteIds are unique
|
||||
await noteService.scanForLinks(noteId);
|
||||
await noteService.scanForLinks(await repository.getNotes(noteId));
|
||||
|
||||
if (!metaFile) {
|
||||
// if there's no meta file then the notes are created based on the order in that tar file but that
|
||||
|
||||
Reference in New Issue
Block a user