|
|
|
@ -458,6 +458,7 @@ function findIncludeNoteLinks(content, foundLinks) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function findRelationMapLinks(content, foundLinks) {
|
|
|
|
function findRelationMapLinks(content, foundLinks) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
const obj = JSON.parse(content);
|
|
|
|
const obj = JSON.parse(content);
|
|
|
|
|
|
|
|
|
|
|
|
for (const note of obj.notes) {
|
|
|
|
for (const note of obj.notes) {
|
|
|
|
@ -466,6 +467,10 @@ function findRelationMapLinks(content, foundLinks) {
|
|
|
|
value: note.noteId
|
|
|
|
value: note.noteId
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (e) {
|
|
|
|
|
|
|
|
log.error("Could not scan for relation map links: " + e.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const imageUrlToAttachmentIdMapping = {};
|
|
|
|
const imageUrlToAttachmentIdMapping = {};
|
|
|
|
|