This commit is contained in:
Chris Troutner
2020-02-12 10:49:23 -08:00
parent 259a045ae7
commit bf85f068cd
+4 -7
View File
@@ -24,13 +24,10 @@ async function startServer () {
// Connect to the Mongo Database.
mongoose.Promise = global.Promise
mongoose.set('useCreateIndex', true) // Stop deprecation warning.
await mongoose.connect(
config.database,
{
useUnifiedTopology: true,
useNewUrlParser: true
}
)
await mongoose.connect(config.database, {
useUnifiedTopology: true,
useNewUrlParser: true
})
// MIDDLEWARE START