processPoll
Processes the VoteChangedEvent and updates the poll with the new vote.
Parameters
currentUserId
The current user ID.
getOldPoll
A function to get the old poll by its ID.
Processes the VoteCastedEvent and updates the poll with the new vote.
Parameters
currentUserId
The current user ID.
getOldPoll
A function to get the old poll by its ID.
Processes the VoteRemovedEvent and updates the poll by removing the vote.
Parameters
getOldPoll
A function to get the old poll by its ID.
Processes the AnswerCastedEvent and updates the poll with the new answer.
Parameters
getOldPoll
A function to get the old poll by its ID.
Processes the PollClosedEvent and updates the poll by marking it as closed.
Processes the PollUpdatedEvent and updates the poll with the new data.
Parameters
getOldPoll
A function to get the old poll by its ID.