From 389a744ebe74e9b51d556b94ba202b3d0afe2d62 Mon Sep 17 00:00:00 2001 From: Erik Roemmelt Date: Wed, 24 Jul 2019 16:54:35 +0200 Subject: [PATCH] Demo: changes for remote mongoDB --- server/dbs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/dbs.js b/server/dbs.js index 3e18c30..9a45fc8 100644 --- a/server/dbs.js +++ b/server/dbs.js @@ -305,7 +305,7 @@ const dbs = { * Local db: common.config.dbLocalConn * TH db: common.config.dbConn */ - common.mongoose.connect(common.config.dbLocalConn, { + common.mongoose.connect(common.config.dbConn, { useNewUrlParser: true }).then(() => { console.log("Database connected successfully.");