monkeytype/packages/contracts
Christian Fehmer 8a41ccee97
fix: past leaderboard not fetching the users rank (@fehmer) (#6289)
Show the users ranking for the last day on the daily and for the last
week on the weekly leaderboard correctly.

- Fix request query schema for the [daily
rank](https://api.monkeytype.com/docs/internal#tag/leaderboards/operation/leaderboards.getDailyRank)
having pagination
- Fix request query schema for the [weekly
rank](https://api.monkeytype.com/docs/internal#tag/leaderboards/operation/leaderboards.getWeeklyXpRank)
missing the `weeksBefore` parameter
- Fix frontend to include the `daysBefore` or `weeksBefore` parameter on
`rank` calls

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-02-21 16:52:20 +01:00
..
__test__ impr: use tsrest for user endpoints (@fehmer) (#5815) 2024-09-05 17:28:19 +02:00
src fix: past leaderboard not fetching the users rank (@fehmer) (#6289) 2025-02-21 16:52:20 +01:00
.eslintrc.cjs
package.json chore(deps-dev): bump vitest from 2.0.5 to 2.1.9 (#6242) 2025-02-08 13:53:20 +01:00
tsconfig.json impr: use tsrest for user endpoints (@fehmer) (#5815) 2024-09-05 17:28:19 +02:00
vitest.config.js impr: use tsrest for user endpoints (@fehmer) (#5815) 2024-09-05 17:28:19 +02:00