7?
Some checks failed
Deploy Website / deploy (push) Failing after 1m41s

This commit is contained in:
Lee 2024-10-17 15:53:12 +01:00
parent ccf229ade4
commit ba0a406eb4
2 changed files with 3 additions and 3 deletions

@ -12,7 +12,7 @@ import { ScoreSort } from "@ssr/common/score/score-sort";
import ScoreSaberScore from "@ssr/common/score/impl/scoresaber-score";
import ScoreSaberLeaderboard from "@ssr/common/leaderboard/impl/scoresaber-leaderboard";
import { fetchPlayerScores } from "@ssr/common/utils/score-utils";
import PlayerScoresResponse from "../../../../../../common/src/response/player-scores-response";
import PlayerScoresResponse from "@ssr/common/response/player-scores-response";
const UNKNOWN_PLAYER = {
title: "ScoreSaber Reloaded - Unknown Player",
@ -61,7 +61,7 @@ const getPlayerData = async ({ params }: Props, fetchScores: boolean = true): Pr
const player = playerToken && (await getScoreSaberPlayerFromToken(playerToken, await getCookieValue("playerId")));
let scores: PlayerScoresResponse<ScoreSaberScore, ScoreSaberLeaderboard> | undefined;
if (fetchScores) {
scores = await fetchPlayerScores("scoresaber", id, page, sort, search);
scores = await fetchPlayerScores<ScoreSaberScore, ScoreSaberLeaderboard>("scoresaber", id, page, sort, search);
}
const playerData = {

@ -17,7 +17,7 @@ import ScoreSaberPlayer, { getScoreSaberPlayerFromToken } from "@ssr/common/play
import { ScoreSort } from "@ssr/common/score/score-sort";
import ScoreSaberScore from "@ssr/common/score/impl/scoresaber-score";
import ScoreSaberLeaderboard from "@ssr/common/leaderboard/impl/scoresaber-leaderboard";
import PlayerScoresResponse from "../../../../common/src/response/player-scores-response.ts";
import PlayerScoresResponse from "@ssr/common/response/player-scores-response";
const REFRESH_INTERVAL = 1000 * 60 * 5;