NotesService: updateNoteByIdOrAlias should return the new note

Fixes #702

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-01-10 20:30:45 +01:00
parent a14056dbc9
commit 22e14fb706
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 3 additions and 1 deletions

View file

@ -195,6 +195,7 @@ export class NotesService {
revisions.push(Revision.create(noteContent, noteContent));
note.revisions = Promise.resolve(revisions);
await this.noteRepository.save(note);
return this.toNoteDto(note);
}
async getNoteMetadata(noteIdOrAlias: string): Promise<NoteMetadataDto> {