diff --git a/src/app.ts b/src/app.ts index 3d54e49..788644b 100644 --- a/src/app.ts +++ b/src/app.ts @@ -34,7 +34,7 @@ const app = express(); const mongoUrl = MONGODB_URI; (mongoose).Promise = bluebird; -mongoose.connect(mongoUrl, { useMongoClient: true }).then( +mongoose.connect(mongoUrl, { useNewUrlParser: true} ).then( () => { /** ready to use. The `mongoose.connect()` promise resolves to undefined. */ }, ).catch(err => { console.log("MongoDB connection error. Please make sure MongoDB is running. " + err);