Commit 2cf8a76
committed
fix(leaderboard): return serialized empty response for missing user
Change the response for missing user leaderboard entries from an
empty array to an object with a data key containing an empty array.
This ensures consistent serialization output and avoids issues with
the current serialize method not handling empty arrays properly.1 parent 0b6c662 commit 2cf8a76
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments