From 60be9267082e98c5790bf8f92cfce0cf023ec3c4 Mon Sep 17 00:00:00 2001 From: Peter Morton Date: Mon, 6 Mar 2023 20:44:29 -0600 Subject: [PATCH] Fixed const variable error --- routes/unified-data-gateway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/unified-data-gateway.js b/routes/unified-data-gateway.js index aa0ba31..416e72a 100644 --- a/routes/unified-data-gateway.js +++ b/routes/unified-data-gateway.js @@ -226,7 +226,7 @@ router.get("/", (req, res) => { module.exports = router; function sendError(err, res) { console.error(err); - const errStatus = 500; + let errStatus = 500; if (err.response) errStatus = err.response.status; res.status(errStatus).send({ errors: [