fix creating root calendar note when missing, #752

This commit is contained in:
zadam 2020-01-18 08:59:46 +01:00
parent a6cd25071e
commit 0ec11d29ba
2 changed files with 4 additions and 2 deletions

View file

@ -40,7 +40,9 @@ async function getRootCalendarNote() {
parentNoteId: 'root',
title: 'Calendar',
target: 'into',
isProtected: false
isProtected: false,
type: 'text',
content: ''
})).note;
await attributeService.createLabel(rootNote.noteId, CALENDAR_ROOT_LABEL);

View file

@ -71,7 +71,7 @@ function sendMessageToAllClients(message) {
}
}
async function fillInAdditionalProperties(sync) {throw new Error("AAA");
async function fillInAdditionalProperties(sync) {
// fill in some extra data needed by the frontend
if (sync.entityName === 'attributes') {
sync.noteId = await sql.getValue(`SELECT noteId