diff --git a/src/api/public/notes/notes.controller.ts b/src/api/public/notes/notes.controller.ts index 0960fb7b4..e641f17aa 100644 --- a/src/api/public/notes/notes.controller.ts +++ b/src/api/public/notes/notes.controller.ts @@ -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) {