Skip to content

Commit

Permalink
Merge pull request sahat#577 from starcharles/master
Browse files Browse the repository at this point in the history
Fix Deprecation warning of mongoose.Promise
  • Loading branch information
sahat authored Oct 2, 2016
2 parents 5052e71 + 8ef154c commit 55fe46f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const app = express();
/**
* Connect to MongoDB.
*/
mongoose.Promise = global.Promise;
mongoose.connect(process.env.MONGODB_URI || process.env.MONGOLAB_URI);
mongoose.connection.on('connected', () => {
console.log('%s MongoDB connection established!', chalk.green('✓'));
Expand Down

0 comments on commit 55fe46f

Please sign in to comment.