diff --git a/apps/game/client/router-client.ts b/apps/game/client/router-client.ts index 324fecce1..e69de29bb 100644 --- a/apps/game/client/router-client.ts +++ b/apps/game/client/router-client.ts @@ -1,4 +0,0 @@ -import { createClient } from '@core/router'; -import { AppRouter } from '../server/router-server'; - -export const client = createClient(); diff --git a/apps/game/package.json b/apps/game/package.json index 06f627a43..a8f2ef5bc 100644 --- a/apps/game/package.json +++ b/apps/game/package.json @@ -14,7 +14,6 @@ "lint": "eslint . --ext .ts" }, "dependencies": { - "@core/router": "workspace:^", "@discordjs/collection": "^0.2.4", "@npwd/config": "workspace:*", "@npwd/database": "workspace:*", diff --git a/apps/game/server/notes/notes.controller.ts b/apps/game/server/notes/notes.controller.ts index d843ae6ec..3e979f92e 100644 --- a/apps/game/server/notes/notes.controller.ts +++ b/apps/game/server/notes/notes.controller.ts @@ -2,16 +2,6 @@ import { BeforeDBNote, DeleteNoteDTO, NoteItem, NotesEvents } from '@typings/not import NotesService from './notes.service'; import { notesLogger } from './notes.utils'; import { onNetPromise } from '../lib/PromiseNetEvents/onNetPromise'; -import { eventProcedure, router } from '../router-server'; - -export const notesRouter = router({ - addNote: eventProcedure(NotesEvents.ADD_NOTE, async (reqObj, resp) => { - NotesService.handleAddNote(reqObj, resp).catch((e) => { - notesLogger.error(`Error occured in add note event (${reqObj.source}), Error: ${e.message}`); - resp({ status: 'error', errorMsg: 'UNKNOWN_ERROR' }); - }); - }), -}); onNetPromise(NotesEvents.ADD_NOTE, (reqObj, resp) => { NotesService.handleAddNote(reqObj, resp).catch((e) => { diff --git a/apps/game/server/router-server.ts b/apps/game/server/router-server.ts index afc23d99f..e69de29bb 100644 --- a/apps/game/server/router-server.ts +++ b/apps/game/server/router-server.ts @@ -1,13 +0,0 @@ -import { initRouter } from '@core/router'; -import { notesRouter } from './notes/notes.controller'; - -const t = initRouter.create(); - -export const router = t.router; -export const eventProcedure = t.eventProcedure; - -const appRouter = router({ - notes: notesRouter, -}); - -export type AppRouter = typeof appRouter;