diff --git a/apps/portal/src/server/router/offers/offers-comments-router.ts b/apps/portal/src/server/router/offers/offers-comments-router.ts index 11fcda8e..9e8c3d8c 100644 --- a/apps/portal/src/server/router/offers/offers-comments-router.ts +++ b/apps/portal/src/server/router/offers/offers-comments-router.ts @@ -3,8 +3,6 @@ import * as trpc from '@trpc/server'; import { createProtectedRouter } from '../context'; -import type { Reply } from '~/types/offers'; - export const offersCommentsRouter = createProtectedRouter() .query('getComments', { input: z.object({ @@ -38,8 +36,8 @@ export const offersCommentsRouter = createProtectedRouter() if (result) { return result.discussion - .filter((x: Reply) => x.replyingToId === null) - .map((x: Reply) => { + .filter((x) => x.replyingToId === null) + .map((x) => { if (x.user == null) { x.user = { email: '',