diff --git a/src/api/public/me/me.controller.ts b/src/api/public/me/me.controller.ts index f68851a5b..602efaf99 100644 --- a/src/api/public/me/me.controller.ts +++ b/src/api/public/me/me.controller.ts @@ -103,7 +103,7 @@ export class MeController { async getMyNotes(@Req() req: Request): Promise { const notes = this.notesService.getUserNotes(req.user); return await Promise.all( - notes.map((note) => this.notesService.toNoteMetadataDto(note)), + (await notes).map((note) => this.notesService.toNoteMetadataDto(note)), ); } }