diff --git a/packages/backend/package.json b/packages/backend/package.json index 85b68118..676d21ea 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -19,6 +19,7 @@ "cors": "^2.8.5", "debug": "^4.3.1", "express": "^4.18.2", + "express-async-errors": "^3.1.1", "express-session": "^1.18.0", "fs-extra": "^11.2.0", "graphql": "^16.8.1", diff --git a/packages/backend/src/index.ts b/packages/backend/src/index.ts index c74cb6e7..c6f0b3c6 100644 --- a/packages/backend/src/index.ts +++ b/packages/backend/src/index.ts @@ -1,3 +1,4 @@ +import 'express-async-errors'; import 'reflect-metadata'; import debug from 'debug'; import fs from 'fs'; diff --git a/packages/backend/src/routes/staging.ts b/packages/backend/src/routes/staging.ts index 979833e6..6a5cf506 100644 --- a/packages/backend/src/routes/staging.ts +++ b/packages/backend/src/routes/staging.ts @@ -3,7 +3,7 @@ import { Router } from 'express'; const router = Router(); router.get('/version', async (req, res) => { - return res.send({ version: '0.0.5' }); + return res.send({ version: '0.0.6' }); }); export default router; diff --git a/yarn.lock b/yarn.lock index cb05a2e5..64c8defe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10575,6 +10575,11 @@ exponential-backoff@^3.1.1: resolved "https://registry.yarnpkg.com/exponential-backoff/-/exponential-backoff-3.1.1.tgz#64ac7526fe341ab18a39016cd22c787d01e00bf6" integrity sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw== +express-async-errors@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/express-async-errors/-/express-async-errors-3.1.1.tgz#6053236d61d21ddef4892d6bd1d736889fc9da41" + integrity sha512-h6aK1da4tpqWSbyCa3FxB/V6Ehd4EEB15zyQq9qe75OZBp0krinNKuH4rAY+S/U/2I36vdLAUFSjQJ+TFmODng== + express-session@^1.18.0: version "1.18.0" resolved "https://registry.yarnpkg.com/express-session/-/express-session-1.18.0.tgz#a6ae39d9091f2efba5f20fc5c65a3ce7c9ce16a3"