NotesController: Fix ESLint errors

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-02-24 22:33:47 +01:00
parent dd424cbcee
commit 56d28188e7
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

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