mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 04:24:43 -04:00
feat(revision): include edits in dto
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
50c8f39c0c
commit
7050c9f13b
7 changed files with 48 additions and 6 deletions
|
@ -172,7 +172,7 @@ export class NotesController {
|
|||
@RequestNote() note: Note,
|
||||
@Param('revisionId') revisionId: number,
|
||||
): Promise<RevisionDto> {
|
||||
return this.revisionsService.toRevisionDto(
|
||||
return await this.revisionsService.toRevisionDto(
|
||||
await this.revisionsService.getRevision(note, revisionId),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -264,7 +264,7 @@ export class NotesController {
|
|||
@RequestNote() note: Note,
|
||||
@Param('revisionId') revisionId: number,
|
||||
): Promise<RevisionDto> {
|
||||
return this.revisionsService.toRevisionDto(
|
||||
return await this.revisionsService.toRevisionDto(
|
||||
await this.revisionsService.getRevision(note, revisionId),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue