We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ec1ba commit 456697eCopy full SHA for 456697e
server/server.js
@@ -121,6 +121,7 @@ require('./config/passport');
121
// const passportConfig = require('./config/passport');
122
123
// Connect to MongoDB
124
+mongoose.Promise = global.Promise;
125
mongoose.connect(mongoConnectionString, { useMongoClient: true });
126
mongoose.connection.on('error', () => {
127
console.error('MongoDB Connection Error. Please make sure that MongoDB is running.');
0 commit comments