MeController: Fix ESLint errors

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-02-24 22:33:29 +01:00
parent 0344a8294e
commit dd424cbcee
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -103,7 +103,7 @@ export class MeController {
async getMyNotes(@Req() req: Request): Promise<NoteMetadataDto[]> {
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)),
);
}
}