NotesService: toNotePermissionsDto does not need to be async

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-02-24 21:17:05 +01:00
parent def4ef145e
commit bfa5f0dfc6
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 3 additions and 4 deletions

View file

@ -221,7 +221,7 @@ export class NotesController {
if (!this.permissionsService.isOwner(req.user, note)) {
throw new UnauthorizedException('Updating note denied!');
}
return await this.noteService.toNotePermissionsDto(
return this.noteService.toNotePermissionsDto(
this.noteService.updateNotePermissions(note, updateDto),
);
} catch (e) {