mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +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(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();
|
||||
console.log(err);
|
||||
return res.status(500).json(errors);
|
||||
|
||||
Reference in New Issue
Block a user