Skip to content

Commit

Permalink
🐛 Fix poll status not set to finalized for paused polls
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Dec 5, 2023
1 parent a804608 commit 1bd4723
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Fixes an issue in the previous migration where paused polls were not being
set to finalized if they had an event_id.
*/
-- Set "status" to "finalized" if "event_id" is not null
UPDATE "polls"
SET "status" = 'finalized'::poll_status
WHERE "event_id" IS NOT NULL;

1 comment on commit 1bd4723

@vercel
Copy link

@vercel vercel bot commented on 1bd4723 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

app-git-main-rallly.vercel.app
app-rallly.vercel.app
app.rallly.co

Please sign in to comment.