feat(revision): include edits in dto

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-02-13 19:07:52 +01:00
parent 50c8f39c0c
commit 7050c9f13b
7 changed files with 48 additions and 6 deletions

View file

@ -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),
);
}

View file

@ -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),
);
}