Skip to content

Commit

Permalink
mongo auth fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon1320 committed Sep 10, 2018
1 parent 270b2ec commit f53886e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = require("../config.json");

const genLogger = new Logger();

mongoose.connect(`mongodb://${config.mongo_user === null && config.mongo_pass === null ? "" : `${config.mongo_user}:${config.mongo_pass}@`}localhost/rawrxd`);
mongoose.connect(`mongodb://${config.mongo_user === null && config.mongo_pass === null ? "" : `${config.mongo_user}:${config.mongo_pass}@`}localhost/rawrxd`, { useNewUrlParser: true });
mongoose.Promise = global.Promise;

const db = mongoose.connection;
Expand Down

0 comments on commit f53886e

Please sign in to comment.