small API additions

This commit is contained in:
zadam
2020-06-14 14:30:57 +02:00
parent 16fef78344
commit fb975849b9
7 changed files with 19 additions and 5 deletions

View File

@@ -276,6 +276,9 @@ class TreeCache {
return child.parentToBranch[parentNoteId];
}
/**
* @return {Promise<NoteComplement>}
*/
async getNoteComplement(noteId) {
if (!this.noteComplementPromises[noteId]) {
this.noteComplementPromises[noteId] = server.get('notes/' + noteId).then(row => new NoteComplement(row));