Skip to content

Commit

Permalink
Upgrade to Mongoose 8.3.2 for Express
Browse files Browse the repository at this point in the history
  • Loading branch information
JHyeok committed Apr 27, 2024
1 parent 8ae1fcb commit b1e3866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions frameworks/JavaScript/express/mongodb-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ const cluster = require('cluster');
const numCPUs = require('os').cpus().length;
const express = require('express');
const mongoose = require('mongoose');
const connection = mongoose.createConnection('mongodb://tfb-database/hello_world',{
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
});
const connection = mongoose.createConnection('mongodb://tfb-database/hello_world');

// Middleware
const bodyParser = require('body-parser');
Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dateformat": "3.0.3",
"escape-html": "1.0.3",
"express": "4.18.2",
"mongoose": "5.13.20",
"mongoose": "8.3.2",
"mysql2": "3.9.7",
"pg": "8.5.0",
"pg-promise": "10.7.3",
Expand Down

0 comments on commit b1e3866

Please sign in to comment.