Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Stop sending notification emails to anonymous users (#2267)

Luke Vellac77395d5dbcc
diff --git a/apps/web/src/features/notifications/queries.ts b/apps/web/src/features/notifications/queries.ts
index b3b65dae6..54917c422 100644
--- a/apps/web/src/features/notifications/queries.ts
+++ b/apps/web/src/features/notifications/queries.ts
@@ -53,7 +53,7 @@ export async function getNotificationRecipient({
}
const creator = await prisma.user.findUnique({
- where: { id: poll.userId },
+ where: { id: poll.userId, isAnonymous: false },
select: {
id: true,
email: true,