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 ordering of images in leaderboard api #1964

Merged
merged 1 commit into from Mar 4, 2023
Merged

Conversation

AbdBarho
Copy link
Collaborator

@AbdBarho AbdBarho commented Mar 4, 2023

Basically, the wrong image was assigned to the user.

prisma.finaMany will return the items unsorted, and there is no operation to get multiple items at once in the same order you requested, you can use a transaction but it will execute sequentially.

This was a very surprising behavior for me.

prisma/prisma#13278

@AbdBarho AbdBarho marked this pull request as ready for review March 4, 2023 17:47
@AbdBarho AbdBarho changed the title Fix ordering of image in leaderboard api Fix ordering of images in leaderboard api Mar 4, 2023
@notmd notmd merged commit 34b9535 into main Mar 4, 2023
@notmd notmd deleted the fix-sort-leaderboart branch March 4, 2023 18:19
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.

None yet

2 participants