From ed4bcc93e11244388ba80cf78bc60c668704c1ec Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 23 Oct 2024 15:52:25 +0100 Subject: [PATCH] typescript makes me want to kms sometimes. --- projects/backend/src/service/beatsaver.service.ts | 2 +- .../website/src/components/leaderboard/leaderboard-info.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/backend/src/service/beatsaver.service.ts b/projects/backend/src/service/beatsaver.service.ts index b6c33fb..2ef9267 100644 --- a/projects/backend/src/service/beatsaver.service.ts +++ b/projects/backend/src/service/beatsaver.service.ts @@ -21,7 +21,7 @@ export default class BeatSaverService { } // If the map does not need to be refreshed, return it - if (!map.shouldRefresh()) { + if (!(map as unknown as BeatSaverMap).shouldRefresh()) { return toObject; } } diff --git a/projects/website/src/components/leaderboard/leaderboard-info.tsx b/projects/website/src/components/leaderboard/leaderboard-info.tsx index 5924e7a..7bdbb36 100644 --- a/projects/website/src/components/leaderboard/leaderboard-info.tsx +++ b/projects/website/src/components/leaderboard/leaderboard-info.tsx @@ -3,7 +3,7 @@ import Image from "next/image"; import { LeaderboardSongStarCount } from "@/components/leaderboard/leaderboard-song-star-count"; import ScoreButtons from "@/components/score/score-buttons"; import ScoreSaberLeaderboard from "@ssr/common/leaderboard/impl/scoresaber-leaderboard"; -import { BeatSaverMap } from "../../../../common/src/model/beatsaver/map"; +import { BeatSaverMap } from "@ssr/common/model/beatsaver/map"; import { getBeatSaverMapperProfileUrl } from "@ssr/common/utils/beatsaver.util"; import FallbackLink from "@/components/fallback-link"; import { formatNumber } from "@ssr/common/utils/number-utils";