Skip to content

Commit

Permalink
Squash a deprecation warning (#1481)
Browse files Browse the repository at this point in the history
Applies to *mongodb*

Auto-merge
  • Loading branch information
Martii authored Jul 2, 2018
1 parent ca86ab3 commit 142fff6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/scriptStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ var mtimeUglifyJS = new Date(util.inspect(stats.mtime));
var store = null;
if (isPro) {
store = new MongoStore(function (ready) {
MongoClient.connect('mongodb://127.0.0.1:27017/test', function(aErr, aClient) {
MongoClient.connect('mongodb://127.0.0.1:27017/test', {
useNewUrlParser: true
}, function(aErr, aClient) {
if (aErr) {
throw aErr;
}
Expand Down

0 comments on commit 142fff6

Please sign in to comment.