fix: use u param for RetroAchievements user progress request

RA's API_GetGameInfoAndUserProgress expects the username/ULID in the u query param, not z. Using z returned 422 'The u field is required.'
This commit is contained in:
Moyasee
2026-06-29 17:34:35 +03:00
parent b2b7299a3e
commit 7ffbaeaaa6
@@ -35,7 +35,7 @@ export class RetroAchievementsClient {
const response =
await this.instance.get<RetroAchievementsGameInfoAndUserProgress>(
"/API_GetGameInfoAndUserProgress.php",
{ params: { z: username, y: webApiKey, g: raGameId } }
{ params: { u: username, y: webApiKey, g: raGameId } }
);
return response.data;