mirror of
https://github.com/zadam/trilium.git
synced 2025-01-06 07:13:48 +08:00
fixed import with attributes
This commit is contained in:
parent
f7587de452
commit
fec1574447
1 changed files with 8 additions and 1 deletions
|
@ -188,7 +188,14 @@ async function importNotes(files, parentNoteId, noteIdMap) {
|
||||||
noteIdMap[file.meta.noteId] = note.noteId;
|
noteIdMap[file.meta.noteId] = note.noteId;
|
||||||
|
|
||||||
for (const attribute of file.meta.attributes) {
|
for (const attribute of file.meta.attributes) {
|
||||||
await attributeService.createAttribute(attribute);
|
await attributeService.createAttribute({
|
||||||
|
noteId: note.noteId,
|
||||||
|
type: attribute.type,
|
||||||
|
name: attribute.name,
|
||||||
|
value: attribute.value,
|
||||||
|
isInheritable: attribute.isInheritable,
|
||||||
|
position: attribute.position
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.children.length > 0) {
|
if (file.children.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue