Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Fix ordering of images in leaderboard api

Open AbdBarho opened this issue 2 years ago • 0 comments

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

AbdBarho avatar Mar 04 '23 17:03 AbdBarho