Skip to content

Commit

Permalink
Fix variable name in db config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaustav Das Modak committed Jun 19, 2014
1 parent 9fd24c0 commit 1407184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var config = require("./config"),
monk = require("monk"),
dbpath;

dbpath = (config.DB_USERNAME ? config.DB_USERNAME + ":" + config.DB_PASSWORD + "@" : "") + config.DB_HOST +
dbpath = (config.DB_USER ? config.DB_USER + ":" + config.DB_PASS + "@" : "") + config.DB_HOST +
":" + config.DB_PORT + "/" + config.DB_NAME;

module.exports = monk(dbpath);

0 comments on commit 1407184

Please sign in to comment.