mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
NotesService: updateNoteByIdOrAlias
should return the new note
Fixes #702 Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
a14056dbc9
commit
22e14fb706
2 changed files with 3 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue