Skip to content

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

🚧 Include space details when fetching poll data (#2310)

Luke Vella759feb88280b
diff --git a/apps/web/src/trpc/routers/polls.ts b/apps/web/src/trpc/routers/polls.ts
index 22834ecfe..dc5f5e24e 100644
--- a/apps/web/src/trpc/routers/polls.ts
+++ b/apps/web/src/trpc/routers/polls.ts
@@ -610,6 +610,15 @@ export const polls = router({
userId: true,
deleted: true,
spaceId: true,
+ space: {
+ select: {
+ name: true,
+ image: true,
+ tier: true,
+ showBranding: true,
+ primaryColor: true,
+ },
+ },
muted: true,
scheduledEvent: {
select: {