fix error
This commit is contained in:
parent
97fba47fd8
commit
f20d83a436
@ -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[]>;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user