From fec157444787ad3dbe01a5052cb01e5374bdcb79 Mon Sep 17 00:00:00 2001 From: azivner Date: Tue, 14 Aug 2018 14:17:10 +0200 Subject: [PATCH] fixed import with attributes --- src/routes/api/import.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {