diff --git a/src/index.ts b/src/index.ts index 3d89922..12e737a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -142,11 +142,6 @@ async function initialise() { }), ); app.use(Sentry.Handlers.errorHandler()); - // eslint-disable-next-line @typescript-eslint/no-unused-vars - app.use((_err: unknown, _req: Request, res: Response<{ sentry: string }>, _next: NextFunction) => { - res.statusCode = 500; - res.end((res as unknown as { sentry: string }).sentry + '\n'); - }); subscribeToFileUploads(); await new Promise((resolve) => httpServer.listen({ port: 4000 }, resolve));