mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
fix: typo in node_env_dev
This commit is contained in:
@@ -39,7 +39,7 @@ app.use(MessagesRoutes);
|
|||||||
app.use(WhatsRoutes);
|
app.use(WhatsRoutes);
|
||||||
|
|
||||||
app.use(async (err, req, res, next) => {
|
app.use(async (err, req, res, next) => {
|
||||||
if (process.env.NODE_ENV === "development") {
|
if (process.env.NODE_ENV === "DEVELOPMENT") {
|
||||||
const errors = await new Youch(err, req).toJSON();
|
const errors = await new Youch(err, req).toJSON();
|
||||||
console.log(err);
|
console.log(err);
|
||||||
return res.status(500).json(errors);
|
return res.status(500).json(errors);
|
||||||
|
|||||||
Reference in New Issue
Block a user