Skip to content

Commit

Permalink
swithed to remote db
Browse files Browse the repository at this point in the history
  • Loading branch information
ChauhanAbhinav committed Sep 3, 2019
1 parent b425d7d commit 85e4d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/db/dbUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let callback, db;
// exporting the mongo
mongo = {
connect: (callback)=> {
if(!db) MongoClient.connect(dbConfig.dbUrl.localUrl,{ useNewUrlParser: true }, function(err, client){
if(!db) MongoClient.connect(dbConfig.dbUrl.remoteUrl,{ useNewUrlParser: true }, function(err, client){

if(err) throw err;
console.log('Mongodb connected');
Expand Down

0 comments on commit 85e4d2f

Please sign in to comment.