Return created/existing branch in EnsureNoteIsPresentInParent

This commit is contained in:
Kara
2023-05-01 12:41:22 -05:00
parent 4f1fafdf75
commit 53c87f3d25
3 changed files with 12 additions and 9 deletions

View File

@@ -137,13 +137,13 @@ function BackendScriptApi(currentNote, apiParams) {
this.getNoteWithLabel = attributeService.getNoteWithLabel;
/**
* If there's no branch between note and parent note, create one. Otherwise, do nothing.
* If there's no branch between note and parent note, create one. Otherwise, do nothing. Returns the new or existing branch.
*
* @method
* @param {string} noteId
* @param {string} parentNoteId
* @param {string} prefix - if branch will be created between note and parent note, set this prefix
* @returns {void}
* @returns {{branch: BBranch|null}}
*/
this.ensureNoteIsPresentInParent = cloningService.ensureNoteIsPresentInParent;