fix
This commit is contained in:
@@ -198,7 +198,7 @@ app.get('/health', (req: Request, res: Response) => {
|
||||
});
|
||||
|
||||
// Error handler
|
||||
app.use((_err: Error, _req: Request, res: Response, _next: any) => {
|
||||
app.use((_err: Error, _req: Request, res: Response) => {
|
||||
console.error(_err.stack);
|
||||
res.status(500).json({ error: 'Something went wrong!' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user