Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(votes): handle potential None result on total_votes #122

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

chikof
Copy link
Member

@chikof chikof commented Nov 27, 2024

Ensure total_votes defaults to 0 if no votes are found. This change
prevents potential runtime errors when accessing the total votes
and improves the reliability of the votes endpoint in the bot
controller.

Ensure total_votes defaults to 0 if no votes are found. This change 
prevents potential runtime errors when accessing the total votes 
and improves the reliability of the votes endpoint in the bot 
controller.
@chikof chikof added the 🐞 type: bug Bug fix label Nov 27, 2024
@chikof chikof merged commit 31d6bfb into main Nov 27, 2024
2 of 3 checks passed
@chikof chikof deleted the fix-votes-async-unwrap branch November 27, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant