minor relation map fixes

This commit is contained in:
azivner
2018-11-18 23:57:39 +01:00
parent 4f23f2515a
commit 2e76de5f34
2 changed files with 12 additions and 5 deletions

View File

@@ -68,6 +68,10 @@ async function createNewNote(parentNoteId, noteData) {
noteData.type = noteData.type || parentNote.type;
noteData.mime = noteData.mime || parentNote.mime;
if (noteData.type === 'text' || noteData.type === 'code') {
noteData.content = noteData.content || "";
}
const note = await new Note({
noteId: noteData.noteId, // optionally can force specific noteId
title: noteData.title,