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 f2160243..73f0db82 100644 --- a/apps/portal/src/server/router/offers/offers-comments-router.ts +++ b/apps/portal/src/server/router/offers/offers-comments-router.ts @@ -321,16 +321,11 @@ export const offersCommentsRouter = createRouter() }, }); - // If (result) { - // return result.discussion.filter((x) => x.replyingToId === null); - // } - - // return result; + } else { + throw new trpc.TRPCError({ + code: 'UNAUTHORIZED', + message: 'Wrong userId or token.', + }); } - - throw new trpc.TRPCError({ - code: 'UNAUTHORIZED', - message: 'Wrong userId or token.', - }); }, });