diff --git a/lib/notifications/documents/createDocumentNotifications.ts b/lib/notifications/documents/createDocumentNotifications.ts index 20a62876a4..a0ffb8254f 100644 --- a/lib/notifications/documents/createDocumentNotifications.ts +++ b/lib/notifications/documents/createDocumentNotifications.ts @@ -531,7 +531,11 @@ export async function createDocumentNotifications(webhookData: { const proposalId = document?.type === 'proposal' ? document?.proposal?.id : null; const proposalReviewerUserIds = Array.from( - new Set(document?.proposal?.reviewers.map((reviewer) => reviewer.userId).filter(isTruthy) ?? []) + new Set( + [...(document?.proposal?.reviewers ?? []), ...(document?.proposal?.ProposalAppealReviewer ?? [])] + .map((reviewer) => reviewer.userId) + .filter(isTruthy) ?? [] + ) ).filter((userId) => userId !== commentAuthorId && !notificationSentUserIds.has(userId)); if (documentId && proposalId && space.domain === 'op-grants' && proposalReviewerUserIds.length) {