fix backend API's getNote, getBranch, getAttribute, closes #2230

This commit is contained in:
zadam 2021-10-14 21:19:03 +02:00
parent dc0d6d24bd
commit 449081807e

View File

@ -58,21 +58,21 @@ function BackendScriptApi(currentNote, apiParams) {
* @param {string} noteId * @param {string} noteId
* @returns {Note|null} * @returns {Note|null}
*/ */
this.getNote = becca.getNote; this.getNote = noteId => becca.getNote(noteId);
/** /**
* @method * @method
* @param {string} branchId * @param {string} branchId
* @returns {Branch|null} * @returns {Branch|null}
*/ */
this.getBranch = becca.getBranch; this.getBranch = branchId => becca.getBranch(branchId);
/** /**
* @method * @method
* @param {string} attributeId * @param {string} attributeId
* @returns {Attribute|null} * @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.: * This is a powerful search method - you can search by attributes and their values, e.g.: