mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
feat: finished queues crud services
This commit is contained in:
@@ -32,11 +32,7 @@ app.use(Sentry.Handlers.errorHandler());
|
||||
|
||||
app.use(async (err: Error, req: Request, res: Response, _: NextFunction) => {
|
||||
if (err instanceof AppError) {
|
||||
if (err.statusCode === 403) {
|
||||
logger.warn(err);
|
||||
} else {
|
||||
logger.error(err);
|
||||
}
|
||||
logger.warn(err);
|
||||
return res.status(err.statusCode).json({ error: err.message });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user