|
|
|
@ -240,6 +240,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (noteMeta && noteMeta.isClone) {
|
|
|
|
if (noteMeta && noteMeta.isClone) {
|
|
|
|
|
|
|
|
if (!becca.getBranchFromChildAndParent(noteId, parentNoteId)) {
|
|
|
|
new Branch({
|
|
|
|
new Branch({
|
|
|
|
noteId,
|
|
|
|
noteId,
|
|
|
|
parentNoteId,
|
|
|
|
parentNoteId,
|
|
|
|
@ -247,6 +248,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|
|
|
prefix: noteMeta.prefix,
|
|
|
|
prefix: noteMeta.prefix,
|
|
|
|
notePosition: noteMeta.notePosition
|
|
|
|
notePosition: noteMeta.notePosition
|
|
|
|
}).save();
|
|
|
|
}).save();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -366,6 +368,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|
|
|
|
|
|
|
|
|
|
|
note.setContent(content);
|
|
|
|
note.setContent(content);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!becca.getBranchFromChildAndParent(noteId, parentNoteId)) {
|
|
|
|
new Branch({
|
|
|
|
new Branch({
|
|
|
|
noteId,
|
|
|
|
noteId,
|
|
|
|
parentNoteId,
|
|
|
|
parentNoteId,
|
|
|
|
@ -374,6 +377,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|
|
|
notePosition: noteMeta.notePosition
|
|
|
|
notePosition: noteMeta.notePosition
|
|
|
|
}).save();
|
|
|
|
}).save();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
({note} = noteService.createNewNote({
|
|
|
|
({note} = noteService.createNewNote({
|
|
|
|
parentNoteId: parentNoteId,
|
|
|
|
parentNoteId: parentNoteId,
|
|
|
|
|