From 38b787fe25f636b9b3efd2e3a5d091d365133edd Mon Sep 17 00:00:00 2001 From: David Mehren Date: Wed, 24 Feb 2021 22:33:29 +0100 Subject: [PATCH] MeController: Fix ESLint errors Signed-off-by: David Mehren --- src/api/public/me/me.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)), ); } }