Skip to content

Commit

Permalink
#35 Remove unused extra error middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
danielemery committed Oct 3, 2023
1 parent c68f899 commit 1e8b834
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>((resolve) => httpServer.listen({ port: 4000 }, resolve));
Expand Down

0 comments on commit 1e8b834

Please sign in to comment.