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 bug
azivnerd19f04496197
diff --git a/src/public/javascripts/services/script_api.js b/src/public/javascripts/services/script_api.jsindex 4545778480..e419f55613 100644--- a/src/public/javascripts/services/script_api.js+++ b/src/public/javascripts/services/script_api.js@@ -55,6 +55,7 @@ function ScriptApi(startNote, currentNote) {getInstanceName: () => window.glob.instanceName,runOnServer,formatDateISO: utils.formatDateISO,+ parseDate: utils.parseDate,showMessage: utils.showMessage,showError: utils.showError}diff --git a/src/services/date_notes.js b/src/services/date_notes.jsindex 072c06b4af..443dde02c8 100644--- a/src/services/date_notes.js+++ b/src/services/date_notes.js@@ -15,12 +15,12 @@ const DAYS = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturconst MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];async function createNote(parentNoteId, noteTitle, noteText) {- return await noteService.createNewNote(parentNoteId, {+ return (await noteService.createNewNote(parentNoteId, {title: noteTitle,content: noteText,target: 'into',isProtected: false- });+ })).note;}async function getNoteStartingWith(parentNoteId, startsWith) {