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: time based quizzes #3761

Merged
merged 2 commits into from
Dec 28, 2023
Merged

fix: time based quizzes #3761

merged 2 commits into from
Dec 28, 2023

Conversation

nicolasburtey
Copy link
Member

mongodb is not necessarily returning by order of entry, so we need to order the list of quiz to make sure we are comparing date on the last quiz that has been claimed

Copy link
Collaborator

@dolcalmi dolcalmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but.. is it not better to sort by db?

@nicolasburtey
Copy link
Member Author

Yup but there is still the possibility for someone to claim id not in the expected order (someone using the API, not the mobile app). We may want to robustify this eventually but for now doing ordering in domain is safer than assuming a db order

@nicolasburtey nicolasburtey merged commit 59d7ae9 into main Dec 28, 2023
15 checks passed
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.

2 participants