Dead Letter #43
This post contains content not supported on old Reddit. Click here to view the full post
This post contains content not supported on old Reddit. Click here to view the full post
Hi, I'm seeing a server-side bug that just started occurring and is affecting my app.
I'm using `redis.zRange` with `{ reverse: true, withScores: true }` to fetch leaderboard entries in descending score order. As of recently, results are coming back in ascending order instead. Nothing changed on my end. It's the same code that has been working until now.
Example:
const results = await redis.zRange(`leaderboard:${gameKey}`, 0, 19, { reverse: true, withScores: true });
This is breaking my leaderboard. All players are showing as rank 1 and scores are ordered from lowest to highest.
I have a client-side fix for it, but since it can take days for changes to be approved, I'm hoping a server-side fix can happen before then.
Any help would be most appreciated. Thank you.