From 3ad22f919504b8049b4508709e0953a9b6798c2d Mon Sep 17 00:00:00 2001 From: canove Date: Wed, 5 Aug 2020 19:45:52 -0300 Subject: [PATCH] fix: typo in node_env_dev --- backend/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app.js b/backend/src/app.js index 585dd6d..4e78f67 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -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);