Skip to content

Commit

Permalink
fixed import with attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Aug 14, 2018
1 parent f7587de commit fec1574
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routes/api/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fec1574

Please sign in to comment.