Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Fix issue with comment creation
Luke Vellab8046c573613
diff --git a/apps/web/src/trpc/routers/polls/comments.ts b/apps/web/src/trpc/routers/polls/comments.tsindex 2e6d5e61a..6d8966c1e 100644--- a/apps/web/src/trpc/routers/polls/comments.ts+++ b/apps/web/src/trpc/routers/polls/comments.ts@@ -86,7 +86,9 @@ export const comments = router({content,pollId,authorName,- userId: ctx.user.id,+ ...(ctx.user.isLegacyGuest+ ? { guestId: ctx.user.id }+ : { userId: ctx.user.id }),},select: {id: true,