fix error
Some checks failed
Deploy Backend / docker (ubuntu-latest) (push) Failing after 34s
Deploy Website / docker (ubuntu-latest) (push) Failing after 32s

This commit is contained in:
Lee 2024-10-25 21:32:59 +01:00
parent 97fba47fd8
commit f20d83a436
6 changed files with 7 additions and 7 deletions

@ -1,5 +1,5 @@
import { SSRCache } from "@ssr/common/cache"; import { SSRCache } from "@ssr/common/cache";
import { InternalServerError } from "../error/internal-server-error"; import { InternalServerError } from "@ssr/common/error/internal-server-error";
import { isProduction } from "@ssr/common/utils/utils"; import { isProduction } from "@ssr/common/utils/utils";
/** /**

@ -1,9 +1,9 @@
import { PlayerDocument, PlayerModel } from "@ssr/common/model/player"; import { PlayerDocument, PlayerModel } from "@ssr/common/model/player";
import { NotFoundError } from "../error/not-found-error"; import { NotFoundError } from "@ssr/common/error/not-found-error";
import { getDaysAgoDate, getMidnightAlignedDate } from "@ssr/common/utils/time-utils"; import { getDaysAgoDate, getMidnightAlignedDate } from "@ssr/common/utils/time-utils";
import { scoresaberService } from "@ssr/common/service/impl/scoresaber"; import { scoresaberService } from "@ssr/common/service/impl/scoresaber";
import ScoreSaberPlayerToken from "@ssr/common/types/token/scoresaber/score-saber-player-token"; import ScoreSaberPlayerToken from "@ssr/common/types/token/scoresaber/score-saber-player-token";
import { InternalServerError } from "../error/internal-server-error"; import { InternalServerError } from "@ssr/common/error/internal-server-error";
import { formatPp } from "@ssr/common/utils/number-utils"; import { formatPp } from "@ssr/common/utils/number-utils";
import { delay, getPageFromRank, isProduction } from "@ssr/common/utils/utils"; import { delay, getPageFromRank, isProduction } from "@ssr/common/utils/utils";
import { DiscordChannels, logToChannel } from "../bot/bot"; import { DiscordChannels, logToChannel } from "../bot/bot";

@ -1,4 +1,4 @@
import { HttpCode } from "../common/http-codes"; import { HttpCode } from "backend/src/common/http-codes";
export class InternalServerError extends Error { export class InternalServerError extends Error {
constructor( constructor(

@ -1,4 +1,4 @@
import { HttpCode } from "../common/http-codes"; import { HttpCode } from "backend/src/common/http-codes";
export class NotFoundError extends Error { export class NotFoundError extends Error {
constructor( constructor(

@ -1,4 +1,4 @@
import { HttpCode } from "../common/http-codes"; import { HttpCode } from "backend/src/common/http-codes";
export class RateLimitError extends Error { export class RateLimitError extends Error {
constructor( constructor(

@ -1,5 +1,5 @@
import { NotFoundError } from "backend/src/error/not-found-error";
import { Metadata } from "./types/metadata"; import { Metadata } from "./types/metadata";
import { NotFoundError } from "./error/not-found-error";
type FetchItemsFunction<T> = (fetchItems: FetchItems) => Promise<T[]>; type FetchItemsFunction<T> = (fetchItems: FetchItems) => Promise<T[]>;