mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
NotesService: toNotePermissionsDto does not need to be async
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
def4ef145e
commit
bfa5f0dfc6
2 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue