Open-Assistant
Open-Assistant copied to clipboard
Fix ordering of images in leaderboard api
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.
https://github.com/prisma/prisma/issues/13278