Skip to content

Commit

Permalink
use unified topology in mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Jan 11, 2021
1 parent cb2ddc7 commit 662a0f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"cors": "^2.8.5",
"debug": "4.1.1",
"dotenv": "8.0.0",
"express": "4.17.1",
"express": "^4.17.1",
"glob": "7.1.4",
"js-cookie": "2.2.0",
"jsonwebtoken": "8.5.1",
Expand Down
1 change: 1 addition & 0 deletions spec/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let ConnectServer;
mongoose.set('useFindAndModify', false);
mongoose.set('useCreateIndex', true);
mongoose.set('useNewUrlParser', true);
mongoose.set('useUnifiedTopology', true);

const Parse = require('parse/node');
Parse.serverURL = 'http://localhost:3000/parse';
Expand Down
1 change: 1 addition & 0 deletions src/db/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { MONGO_URI } = require('../config');
mongoose.set('useFindAndModify', false);
mongoose.set('useCreateIndex', true);
mongoose.set('useNewUrlParser', true);
mongoose.set('useUnifiedTopology', true);

let parseConnect;
let apiConnect;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,7 @@ anymatch@^3.0.3:
normalize-path "^3.0.0"
picomatch "^2.0.4"

"apn@parse-community/node-apn#semver:^3.0.1-parse":
"apn@github:parse-community/node-apn#semver:^3.0.1-parse":
version "3.2.0"
resolved "https://codeload.github.com/parse-community/node-apn/tar.gz/68de6580510bccd898891d059f8a570ad345731e"
dependencies:
Expand Down Expand Up @@ -2328,9 +2328,9 @@ atob@^2.1.2:
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==

aws-sdk@^2.59.0:
version "2.824.0"
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.824.0.tgz#a67747d4d0b53d09c6c121e93f44d8f6e76fc44b"
integrity sha512-9KNRQBkIMPn+6DWb4gR+RzqTMNyGLEwOgXbE4dDehOIAflfLnv3IFwLnzrhxJnleB4guYrILIsBroJFBzjiekg==
version "2.825.0"
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.825.0.tgz#91dad854827f6f8ada5a305dd32524e2f19cc622"
integrity sha512-b49nvaETm7uVRLf0FJ1CMmwCRVlLaxHtptVFuxX+2L4FR9VB0sLdgsxhtL3RVFbQlgVFNRV7fJUVK27mC++H+A==
dependencies:
buffer "4.9.2"
events "1.1.1"
Expand Down

0 comments on commit 662a0f2

Please sign in to comment.