mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -04:00
Don't await non-Promises
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
f3f0360a95
commit
2b14ad92cd
2 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ export class NotesController {
|
|||
throw new UnauthorizedException('Updating note denied!');
|
||||
}
|
||||
return await this.noteService.toNotePermissionsDto(
|
||||
await this.noteService.updateNotePermissions(note, updateDto),
|
||||
this.noteService.updateNotePermissions(note, updateDto),
|
||||
);
|
||||
} catch (e) {
|
||||
if (e instanceof NotInDBError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue