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: [