From 67c95ea646b12e986108a1a8217b2d27af0e4cf8 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 15 Oct 2023 23:42:47 +0200 Subject: [PATCH] fix: type error --- packages/backend/src/core/entities/NoteEntityService.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index 09536ce33..498cf4721 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -348,7 +348,7 @@ export class NoteEntityService implements OnModuleInit { url: note.url ?? undefined, poll: note.hasPoll ? this.populatePoll(note, meId) : undefined, ...(meId ? { - myReaction: this.populateMyReaction(note, meId, options?._hint_), + myReaction: this.populateMyReaction(note.id, meId, options?._hint_), } : {}), ...(opts.detail ? { @@ -363,12 +363,6 @@ export class NoteEntityService implements OnModuleInit { detail: true, _hint_: options?._hint_, }) : undefined, - - poll: note.hasPoll ? this.populatePoll(note, meId) : undefined, - - ...(meId ? { - myReaction: this.populateMyReaction(note.id, meId, options?._hint_), - } : {}), } : {}), });