From 021c326fae0f93f1e2bf539f85e7cd17a0f63918 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Wed, 25 Dec 2019 18:36:55 +0100 Subject: [PATCH] Updated mongo --- mongo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mongo.js b/mongo.js index 3cfd3eb..6859039 100644 --- a/mongo.js +++ b/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:'))