now using .tar export to initialize DB instead of direct DB dumps

This commit is contained in:
azivner
2018-11-16 14:36:50 +01:00
parent 5b9a1ef0e9
commit 94565e3ec0
14 changed files with 75 additions and 538 deletions

View File

@@ -82,7 +82,7 @@ async function createNewNote(parentNoteId, noteData) {
parentNoteId: parentNoteId,
notePosition: newNotePos,
prefix: noteData.prefix,
isExpanded: 0
isExpanded: !!noteData.isExpanded
}).save();
for (const attr of await parentNote.getAttributes()) {
@@ -121,7 +121,8 @@ async function createNote(parentNoteId, title, content = "", extraOptions = {})
isProtected: !!extraOptions.isProtected,
type: extraOptions.type,
mime: extraOptions.mime,
dateCreated: extraOptions.dateCreated
dateCreated: extraOptions.dateCreated,
isExpanded: extraOptions.isExpanded
};
if (extraOptions.json && !noteData.type) {