This commit is contained in:
parent
ccf229ade4
commit
ba0a406eb4
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user