Skip to content

Commit

Permalink
Merge pull request #27 from afuh/develop
Browse files Browse the repository at this point in the history
Update mongo client.
  • Loading branch information
Axel committed Jul 7, 2018
2 parents 2abae0a + 6f21b7c commit 2ecb68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const errors = require('./handlers/errors')

const db = process.env.NODE_ENV === "production" ? process.env.DATABASE : 'mongodb://localhost:27017/rickmorty-api'

mongoose.connect(db)
mongoose.connect(db, { useNewUrlParser: true })
mongoose.Promise = global.Promise

mongoose.connection.on('error', err => {
Expand Down

0 comments on commit 2ecb68f

Please sign in to comment.