Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix creating root calendar note when missing, #752
zadam0ec11d29ba2d
diff --git a/src/services/date_notes.js b/src/services/date_notes.jsindex d6b1a396ba..c71ccb9463 100644--- a/src/services/date_notes.js+++ b/src/services/date_notes.js@@ -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);diff --git a/src/services/ws.js b/src/services/ws.jsindex b4703dfc34..5eae3f0f7c 100644--- a/src/services/ws.js+++ b/src/services/ws.js@@ -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 frontendif (sync.entityName === 'attributes') {sync.noteId = await sql.getValue(`SELECT noteId