getting rid of note complement WIP

This commit is contained in:
zadam
2023-05-05 16:37:39 +02:00
parent 9cdcbb3125
commit 5e1f81e53e
23 changed files with 163 additions and 90 deletions

View File

@@ -851,13 +851,17 @@ class FNote {
return await this.froca.getNotes(targetRelations.map(tr => tr.noteId));
}
/**
* Return note complement which is most importantly note's content
*
* @returns {Promise<FNoteComplement>}
*/
/** @deprecated use getBlob() instead */
async getNoteComplement() {
return await this.froca.getNoteComplement(this.noteId);
return this.getBlob({ full: true });
}
/**
* @param [opts.full=false] - force retrieval of the full note
* @return {FBlob}
*/
async getBlob(opts = {}) {
return await this.froca.getBlob('notes', this.noteId, opts);
}
toString() {