'use strict';

var mongoose = require('mongoose');

mongoose.model('User', require('./User'));

mongoose.connect("mongodb://localhost/passport-lesson");

module.exports = mongoose;

'use strict';

var mongoose = require('mongoose');
mongoose.Promise = Promise;

mongoose.model('User', require('./User'));

mongoose.connect("mongodb://localhost/passport-lesson");

module.exports = mongoose;

Set mongoose to use native promises
Set mongoose to use native promises
