From f8e0326dec5aadae8c26c72e8695c8e45c1d9b60 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 23 Oct 2024 09:06:44 +0100 Subject: [PATCH] oops --- projects/common/src/player/impl/scoresaber-player.ts | 2 +- projects/common/src/utils/player-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/src/player/impl/scoresaber-player.ts b/projects/common/src/player/impl/scoresaber-player.ts index 137cb21..d016343 100644 --- a/projects/common/src/player/impl/scoresaber-player.ts +++ b/projects/common/src/player/impl/scoresaber-player.ts @@ -104,7 +104,7 @@ export async function getScoreSaberPlayerFromToken( .get<{ statistics: { [key: string]: PlayerHistory }; }>( - `${Config.apiUrl}/player/history/${token.id}${playerIdCookie && playerIdCookie == token.id ? "?createIfMissing=true" : ""}` + `${Config.apiUrl}/player/history/50/${token.id}${playerIdCookie && playerIdCookie == token.id ? "?createIfMissing=true" : ""}` ) .json(); if (history) { diff --git a/projects/common/src/utils/player-utils.ts b/projects/common/src/utils/player-utils.ts index af60564..35604cf 100644 --- a/projects/common/src/utils/player-utils.ts +++ b/projects/common/src/utils/player-utils.ts @@ -60,7 +60,7 @@ export function sortPlayerHistory(history: Map) { * @param id the player id */ export async function trackPlayer(id: string) { - await kyFetch(`${Config.apiUrl}/player/history/${id}?createIfMissing=true`); + await kyFetch(`${Config.apiUrl}/player/history/1/${id}?createIfMissing=true`); } /**