diff options
Diffstat (limited to 'src/server/routes')
-rw-r--r-- | src/server/routes/getSchedule.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/routes/getSchedule.js b/src/server/routes/getSchedule.js index f1120b7..04df28a 100644 --- a/src/server/routes/getSchedule.js +++ b/src/server/routes/getSchedule.js @@ -69,6 +69,10 @@ router.get('/:type/:value', (req, res, next) => { res.status(response.status).end(response.data); }) .catch((err) => { + if (err.response) { + // eslint-disable-next-line no-param-reassign + err.status = err.response.status; + } next(err); }); }); |