Skip to content

Commit

Permalink
Use new url parser (#382)
Browse files Browse the repository at this point in the history
Currently it issues the following warning:
(node:6686) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
  • Loading branch information
cashlionjp authored and daffl committed Aug 25, 2018
1 parent 37809e7 commit cf613ef
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,7 +1,7 @@
const mongoose = require('mongoose');

module.exports = function (app) {
mongoose.connect(app.get('mongodb'), {});
mongoose.connect(app.get('mongodb'), { useNewUrlParser: true });
mongoose.Promise = global.Promise;

app.set('mongooseClient', mongoose);
Expand Down

0 comments on commit cf613ef

Please sign in to comment.