diff --git a/app/routes/to/$organization.$tournament.tsx b/app/routes/to/$organization.$tournament.tsx index b5ba951ea..ab6014ce5 100644 --- a/app/routes/to/$organization.$tournament.tsx +++ b/app/routes/to/$organization.$tournament.tsx @@ -15,7 +15,7 @@ import { makeTitle } from "~/utils"; import { findTournamentByNameForUrl, FindTournamentByNameForUrlI, -} from "../../../services/tournament"; +} from "../../services/tournament"; import tournamentStylesUrl from "../../styles/tournament.css"; export const links: LinksFunction = () => { diff --git a/app/routes/to/$organization.$tournament/map-pool.tsx b/app/routes/to/$organization.$tournament/map-pool.tsx index cdfdd84c2..d37113413 100644 --- a/app/routes/to/$organization.$tournament/map-pool.tsx +++ b/app/routes/to/$organization.$tournament/map-pool.tsx @@ -3,7 +3,7 @@ import type { Mode } from ".prisma/client"; import classNames from "classnames"; import { modesShort, stages } from "~/utils"; import { LinksFunction, useMatches } from "remix"; -import { FindTournamentByNameForUrlI } from "../../../../services/tournament"; +import { FindTournamentByNameForUrlI } from "../../../services/tournament"; export const links: LinksFunction = () => { return [{ rel: "stylesheet", href: stylesUrl }]; diff --git a/app/routes/to/$organization.$tournament/teams.tsx b/app/routes/to/$organization.$tournament/teams.tsx index 085482be9..8b6a02c12 100644 --- a/app/routes/to/$organization.$tournament/teams.tsx +++ b/app/routes/to/$organization.$tournament/teams.tsx @@ -1,5 +1,5 @@ import { useMatches, LinksFunction } from "remix"; -import { FindTournamentByNameForUrlI } from "../../../../services/tournament"; +import { FindTournamentByNameForUrlI } from "../../../services/tournament"; import stylesUrl from "~/styles/teams.css"; import { Fragment } from "react"; diff --git a/services/tournament.ts b/app/services/tournament.ts similarity index 98% rename from services/tournament.ts rename to app/services/tournament.ts index c97e8ded9..b20998dbc 100644 --- a/services/tournament.ts +++ b/app/services/tournament.ts @@ -1,7 +1,7 @@ import { Prisma } from ".prisma/client"; import { json } from "remix"; import { Serialized } from "~/utils"; -import prisma from "../prisma/client"; +import prisma from "../../prisma/client"; export type FindTournamentByNameForUrlI = Serialized< Prisma.PromiseReturnType