Updates to remove deprecated options from code.

This commit is contained in:
kylebunting 2019-04-03 15:24:28 -04:00
Родитель bbdcf8c90a
Коммит 0ac2c00736
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -27,7 +27,7 @@ async.series([
},
function (callback) {
mongoose.Promise = require('bluebird');
mongoose.connect(databaseUrl, { useMongoClient: true, promiseLibrary: require('bluebird') })
mongoose.connect(databaseUrl, { promiseLibrary: require('bluebird'), useNewUrlParser: true })
.then(() => {
console.log('Connected to MongoDB database: ' + mongoose.connection.name);
callback(null, 'SUCCESS - Connected to MongoDB');
@ -90,7 +90,7 @@ async.series([
firstName: 'Demo',
lastName: 'User',
address1: '123 Main St',
city: 'Carmel',
city: 'Westfield',
state: 'IN',
postalCode: '46033'
}),