-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: enchanced votes with turn for polls #224
Conversation
Coverage Report for API (./apps/api)
File Coverage
|
const format = data.map((poll) => ({ | ||
...poll, | ||
results: poll.results.map((option) => ({ ...option, votes: option.votes.length })), | ||
})); | ||
|
||
const subFormat = subData.map((poll) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je pense qu'il faudrait mettre cette partie du code sous forme de fonction pour pouvoir l'utiliser à la fois dans getOnePoll
et getAllPolls
, en cas de modif ca évite d'oublier de changer les 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est pas pratique de l'exporter en fonction parce que le type de "poll" c'est un type différent de ceux déclaré et ducoup faudrait faire un autre type juste pour lui
Summary 📝
Adds turns and stop conditions for all polls
Which part of the repository is impacted ?
Test plan 🧪
Screenshots (if appropriate): 📸