Skip to content

Commit

Permalink
Merge pull request #3543 from bcgov/update-express-420
Browse files Browse the repository at this point in the history
chore: update body parse with express and lightship
  • Loading branch information
AntBush authored Sep 10, 2024
2 parents 03b0051 + f03912f commit 2792916
Show file tree
Hide file tree
Showing 3 changed files with 368 additions and 245 deletions.
6 changes: 3 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@types/validator": "^13.12.1",
"ajv": "^8.13.0",
"archiver": "^7.0.1",
"body-parser": "^1.20.0",
"body-parser": "1.20.3",
"cheerio": "^1.0.0-rc.12",
"connect-pg-simple": "^7.0.0",
"convict": "^6.2.4",
Expand All @@ -70,7 +70,7 @@
"debug": "^4.3.7",
"delay": "^5.0.0",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express": "4.20.0",
"express-rate-limit": "^7.4.0",
"express-session": "1.18.0",
"formidable": "^3.5.1",
Expand All @@ -84,7 +84,7 @@
"json-schema": "^0.4.0",
"jsonlint": "^1.6.3",
"jsonwebtoken": "^9.0.2",
"lightship": "6.7.2",
"lightship": "7.2.0",
"luxon": "^3.4.3",
"material-react-table": "2.13",
"morgan": "^1.10.0",
Expand Down
2 changes: 1 addition & 1 deletion app/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const bodyParserLimit = '5mb';
app.prepare().then(async () => {
const server = express();

const lightship = createLightship();
const lightship = await createLightship();

lightship.registerShutdownHandler(async () => {
// Allow the server to send any in-flight requests before shutting down
Expand Down
Loading

0 comments on commit 2792916

Please sign in to comment.