Skip to content

Commit

Permalink
Update store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
debianmaster authored Jun 17, 2017
1 parent 185b98a commit a4194be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var connection="mongodb://default:[email protected]:10016/store";
var Server = require('mongodb').Server,
db;
var mongodb = require('mongodb');
db = new mongodb.Db('store', new mongodb.Server(process.env.MONGO_SERVER,process.env.MONGO_PORT, {auto_reconnect:true}), {});
db = new mongodb.Db(process.env.MONGO_DB, new mongodb.Server(process.env.MONGO_SERVER,process.env.MONGO_PORT, {auto_reconnect:true}), {});

db.open(function(err, p_client) {
db.authenticate(process.env.MONGO_USER, process.env.MONGO_PASSWORD, function(err) {
Expand Down

0 comments on commit a4194be

Please sign in to comment.