Remove unused getNoteContentByIdOrAlias

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2021-02-22 22:31:02 +01:00 committed by David Mehren
parent 8873ac316a
commit 8ec756afb4
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 0 additions and 27 deletions

View file

@ -266,17 +266,6 @@ export class NotesService {
return await this.noteRepository.save(note);
}
/**
* @async
* Get the current content of the note by either their id or alias.
* @param {string} noteIdOrAlias - the notes id or alias
* @return {string} the content of the note
*/
async getNoteContentByIdOrAlias(noteIdOrAlias: string): Promise<string> {
const note = await this.getNoteByIdOrAlias(noteIdOrAlias);
return this.getNoteContentByNote(note);
}
/**
* @async
* Calculate the updateUser (for the NoteDto) for a Note.