generate document now creates also labels and relations

This commit is contained in:
zadam
2019-12-01 10:20:18 +01:00
parent 07b3d11fe5
commit 29c5e394ab
2 changed files with 32 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ async function createNewNote(parentNoteId, noteData) {
isExpanded: !!noteData.isExpanded
}).save();
for (const attr of await parentNote.getAttributes()) {
for (const attr of await parentNote.getOwnedAttributes()) {
if (attr.name.startsWith("child:")) {
await new Attribute({
noteId: note.noteId,