Skip to content

Prevent Voting and Deadline Extension After Poll Ends (api/end-poll) #75

@tran2106

Description

@tran2106

/api/polls/:pollId/close

  • Implement logic so that once a poll is ended (manually or when the deadline is reached), users cannot submit any new votes.
  • Prevent users from extending the poll deadline after it has ended.
  • Update backend routes to check poll status before allowing vote submissions or deadline changes.
  • Ensure frontend displays ended polls as closed and disables voting/extension actions
  • Add error messages for attempts to vote or extend time on ended polls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions