mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
system links (internal, image, relation map) should follow camelCase convention used for other attributes
This commit is contained in:
@@ -96,7 +96,7 @@ async function addImagesToNote(images, note, content) {
|
||||
noteId: note.noteId,
|
||||
type: 'relation',
|
||||
value: imageNote.noteId,
|
||||
name: 'image-link'
|
||||
name: 'imageLink'
|
||||
}).save();
|
||||
|
||||
console.log(`Replacing ${imageId} with ${url}`);
|
||||
|
||||
@@ -130,7 +130,9 @@ async function getRelationMap(req) {
|
||||
noteTitles: {},
|
||||
relations: [],
|
||||
// relation name => inverse relation name
|
||||
inverseRelations: {}
|
||||
inverseRelations: {
|
||||
'internalLink': 'internalLink'
|
||||
}
|
||||
};
|
||||
|
||||
if (noteIds.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user