Commit 8740f20
Add mode parameter support to user achievements endpoint (#92)
Allows filtering achievements by game mode via query parameter.
Usage:
- /api/v1/users/achievements?id=1000&mode=0 (std achievements only)
- /api/v1/users/achievements?id=1000&mode=1 (taiko achievements only)
- /api/v1/users/achievements?id=1000 (all modes - backwards compatible)
This fixes the issue where users with mode-specific achievements
couldn't see them properly filtered by mode in the API/frontend.
Affects 27,948 users (49% of achievement holders).
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 978c84e commit 8740f20
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
57 | 68 | | |
58 | 69 | | |
| 70 | + | |
| 71 | + | |
59 | 72 | | |
60 | 73 | | |
61 | 74 | | |
| |||
0 commit comments