Skip to content

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

🐛 Use participant email when creating scheduled event (#2062)

Luke Vella1c263b39596c
diff --git a/apps/web/src/trpc/routers/polls.ts b/apps/web/src/trpc/routers/polls.ts
index 4d66ee9fa..292d682a0 100644
--- a/apps/web/src/trpc/routers/polls.ts
+++ b/apps/web/src/trpc/routers/polls.ts
@@ -916,11 +916,10 @@ export const polls = router({
invites: {
createMany: {
data: poll.participants
- .filter((p) => p.email || p.user?.email) // Filter out participants without email
+ .filter((p) => !!p.email)
.map((p) => ({
inviteeName: p.name,
- inviteeEmail:
- p.user?.email ?? p.email ?? `${p.id}@rallly.co`,
+ inviteeEmail: p.email as string,
inviteeTimeZone:
p.user?.timeZone ?? p.timeZone ?? poll.timeZone,
status: (