Skip to content

Commit

Permalink
Fix then
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasGruber committed Mar 21, 2024
1 parent 90be078 commit f15e9f8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/server/api/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { badgeRouter } from "./routers/badge";
import { senseiRouter } from "./routers/sensei";
import { sparringRouter } from "./routers/sparring";
import { kageRouter } from "./routers/kage";
import { lazy } from '@trpc/server/unstable-core-do-not-import';
import { lazy } from "@trpc/server/unstable-core-do-not-import";

/**
* This is the primary router for your server.
Expand All @@ -46,9 +46,11 @@ export const appRouter = createTRPCRouter({
jutsu: jutsuRouter,
home: homeRouter,
item: itemRouter,
combat: lazy(() => import('./routers/combat.ts').((m) => {
return m.combatRouter;
})),
combat: lazy(() =>
import("./routers/combat.ts").then((m) => {
return m.combatRouter;
}),
),
hospital: hospitalRouter,
logs: logsRouter,
data: dataRouter,
Expand Down

0 comments on commit f15e9f8

Please sign in to comment.