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 backend API's getNote, getBranch, getAttribute, closes #2230
zadam449081807e4f
diff --git a/src/services/backend_script_api.js b/src/services/backend_script_api.jsindex 10da7c63c0..1746081d4d 100644--- a/src/services/backend_script_api.js+++ b/src/services/backend_script_api.js@@ -58,21 +58,21 @@ function BackendScriptApi(currentNote, apiParams) {* @param {string} noteId* @returns {Note|null}*/- this.getNote = becca.getNote;+ this.getNote = noteId => becca.getNote(noteId);/*** @method* @param {string} branchId* @returns {Branch|null}*/- this.getBranch = becca.getBranch;+ this.getBranch = branchId => becca.getBranch(branchId);/*** @method* @param {string} attributeId* @returns {Attribute|null}*/- this.getAttribute = becca.getAttribute;+ this.getAttribute = attributeId => becca.getAttribute(attributeId);/*** This is a powerful search method - you can search by attributes and their values, e.g.: