diff --git a/packages/backend/src/queue/processors/ended-poll-notification.ts b/packages/backend/src/queue/processors/ended-poll-notification.ts index 3bf010a1b..c652d6216 100644 --- a/packages/backend/src/queue/processors/ended-poll-notification.ts +++ b/packages/backend/src/queue/processors/ended-poll-notification.ts @@ -28,6 +28,7 @@ export async function endedPollNotification( for (const userId of userIds) { createNotification(userId, "pollEnded", { + note: note, noteId: note.id, }); } diff --git a/packages/backend/src/services/note/polls/vote.ts b/packages/backend/src/services/note/polls/vote.ts index 582af0b17..1016e6aa9 100644 --- a/packages/backend/src/services/note/polls/vote.ts +++ b/packages/backend/src/services/note/polls/vote.ts @@ -67,6 +67,7 @@ export default async function ( // Notify createNotification(note.userId, "pollVote", { notifierId: user.id, + note: note, noteId: note.id, choice: choice, }); @@ -79,6 +80,7 @@ export default async function ( for (const watcher of watchers) { createNotification(watcher.userId, "pollVote", { notifierId: user.id, + note: note, noteId: note.id, choice: choice, });