Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Remove extra call to delete options (#299)
Luke Vella168f70aa2b2d
diff --git a/src/pages/api/house-keeping.ts b/src/pages/api/house-keeping.tsindex e35de1145..4d30dbc15 100644--- a/src/pages/api/house-keeping.ts+++ b/src/pages/api/house-keeping.ts@@ -96,6 +96,7 @@ export default async function handler(},});+ // Delete votesawait prisma.vote.deleteMany({where: {pollId: {@@ -122,10 +123,6 @@ export default async function handler(},});- await prisma.$executeRaw`DELETE FROM options WHERE poll_id IN (${Prisma.join(- pollIdsToDelete,- )})`;-// Delete polls// Using execute raw to bypass soft delete middelwareawait prisma.$executeRaw`DELETE FROM polls WHERE id IN (${Prisma.join(