diff --git a/src/routes/api/import.js b/src/routes/api/import.js index 327bd6173..2e47b1956 100644 --- a/src/routes/api/import.js +++ b/src/routes/api/import.js @@ -188,7 +188,14 @@ async function importNotes(files, parentNoteId, noteIdMap) { noteIdMap[file.meta.noteId] = note.noteId; 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) {