diff --git a/projects/backend/src/service/image.service.tsx b/projects/backend/src/service/image.service.tsx index 281b8c3..e567ce0 100644 --- a/projects/backend/src/service/image.service.tsx +++ b/projects/backend/src/service/image.service.tsx @@ -2,8 +2,8 @@ import { ImageResponse } from "@vercel/og"; import { scoresaberService } from "@ssr/common/service/impl/scoresaber"; import React from "react"; import { formatNumberWithCommas, formatPp } from "@ssr/common/utils/number-utils"; -import { getDifficultyFromScoreSaberDifficulty } from "website/src/common/scoresaber-utils"; import NodeCache from "node-cache"; +import { getDifficultyFromScoreSaberDifficulty } from "@ssr/common/utils/scoresaber-utils"; const imageCache = new NodeCache({ stdTTL: 60 * 60, // 1 hour diff --git a/projects/website/src/common/scoresaber-utils.ts b/projects/common/src/utils/scoresaber-utils.ts similarity index 100% rename from projects/website/src/common/scoresaber-utils.ts rename to projects/common/src/utils/scoresaber-utils.ts diff --git a/projects/website/src/components/leaderboard/leaderboard-song-star-count.tsx b/projects/website/src/components/leaderboard/leaderboard-song-star-count.tsx index c27b375..f3e1526 100644 --- a/projects/website/src/components/leaderboard/leaderboard-song-star-count.tsx +++ b/projects/website/src/components/leaderboard/leaderboard-song-star-count.tsx @@ -1,6 +1,6 @@ import { songDifficultyToColor } from "@/common/song-utils"; import { StarIcon } from "@heroicons/react/24/solid"; -import { getDifficultyFromScoreSaberDifficulty } from "@/common/scoresaber-utils"; +import { getDifficultyFromScoreSaberDifficulty } from "@ssr/common/utils/scoresaber-utils"; import ScoreSaberLeaderboardToken from "@ssr/common/types/token/scoresaber/score-saber-leaderboard-token"; type LeaderboardSongStarCountProps = { diff --git a/projects/website/src/components/score/score-info.tsx b/projects/website/src/components/score/score-info.tsx index 6e1a21a..551ca36 100644 --- a/projects/website/src/components/score/score-info.tsx +++ b/projects/website/src/components/score/score-info.tsx @@ -1,5 +1,5 @@ import BeatSaverMap from "@/common/database/types/beatsaver-map"; -import { getDifficultyFromScoreSaberDifficulty } from "@/common/scoresaber-utils"; +import { getDifficultyFromScoreSaberDifficulty } from "@ssr/common/utils/scoresaber-utils"; import FallbackLink from "@/components/fallback-link"; import Tooltip from "@/components/tooltip"; import { StarIcon } from "@heroicons/react/24/solid";