|
|
|
@ -458,13 +458,18 @@ function findIncludeNoteLinks(content, foundLinks) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function findRelationMapLinks(content, foundLinks) {
|
|
|
|
function findRelationMapLinks(content, foundLinks) {
|
|
|
|
const obj = JSON.parse(content);
|
|
|
|
try {
|
|
|
|
|
|
|
|
const obj = JSON.parse(content);
|
|
|
|
|
|
|
|
|
|
|
|
for (const note of obj.notes) {
|
|
|
|
for (const note of obj.notes) {
|
|
|
|
foundLinks.push({
|
|
|
|
foundLinks.push({
|
|
|
|
name: 'relationMapLink',
|
|
|
|
name: 'relationMapLink',
|
|
|
|
value: note.noteId
|
|
|
|
value: note.noteId
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (e) {
|
|
|
|
|
|
|
|
log.error("Could not scan for relation map links: " + e.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|