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

Change /getanswers to filter based on createTime and also fix multiple toggle bug #165

Closed
acao22 opened this issue Jul 18, 2024 · 0 comments · Fixed by #166
Closed

Change /getanswers to filter based on createTime and also fix multiple toggle bug #165

acao22 opened this issue Jul 18, 2024 · 0 comments · Fixed by #166
Assignees
Labels
enhancement New feature or request

Comments

@acao22
Copy link
Collaborator

acao22 commented Jul 18, 2024

Change /getanswers and /getagreement to filter based on createTime, not id

Description: this is a fix-up following my other issue #157 when we implemented changing answers. Currently /getanswers and /getagreement are set up to filter based on id, not the creation time. For each statement, we want to only display the user's latest answer for that statement. Since id increments each time a new statement is added, it does currently work, but it's better practice and more accurate to filter based on createTime

Also, found a bug where you can't change both I_agree and others_agree at once; only one of them updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant