Updated mongo
This commit is contained in:
parent
07c37f396f
commit
021c326fae
1 changed files with 3 additions and 1 deletions
4
mongo.js
4
mongo.js
|
@ -36,7 +36,9 @@ const schemas = {
|
|||
const Histories = mongoose.model('histories', schemas.histories)
|
||||
const Metadata = mongoose.model('metadata', schemas.metadata)
|
||||
|
||||
mongoose.connect(config.mongoUrl, { useNewUrlParser: true, useUnifiedTopology: true, debug: true })
|
||||
mongoose.set('debug', true)
|
||||
|
||||
mongoose.connect(config.mongoUrl, { useNewUrlParser: true, useUnifiedTopology: true })
|
||||
|
||||
const db = mongoose.connection
|
||||
db.on('error', console.error.bind(console, 'connection error:'))
|
||||
|
|
Loading…
Reference in a new issue