Skip to content

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

🐛 Fix option query running outside transaction in participant update (#2297)

Luke Vella3d111745a47d
diff --git a/apps/web/src/trpc/routers/polls/participants.ts b/apps/web/src/trpc/routers/polls/participants.ts
index 4b796bd4a..f0fafc038 100644
--- a/apps/web/src/trpc/routers/polls/participants.ts
+++ b/apps/web/src/trpc/routers/polls/participants.ts
@@ -402,7 +402,7 @@ export const participants = router({
},
});
- const options = await prisma.option.findMany({
+ const options = await tx.option.findMany({
where: {
pollId,
},