fix creating note directly as protected

This commit is contained in:
zadam
2019-03-30 19:24:53 +01:00
parent b51ac112a2
commit 4b41eddf44
2 changed files with 12 additions and 6 deletions

View File

@@ -95,7 +95,8 @@ async function createNewNote(parentNoteId, noteData) {
note.noteContent = await new NoteContent({
noteId: note.noteId,
content: noteData.content
content: noteData.content,
isProtected: noteData.isProtected
}).save();
const branch = await new Branch({