Skip to content

Commit

Permalink
Revert "Heroku Fix"
Browse files Browse the repository at this point in the history
This reverts commit 144494f.
  • Loading branch information
polonel committed Mar 17, 2018
1 parent 144494f commit 12f940a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/index.js
Expand Up @@ -36,7 +36,7 @@ var options = { keepAlive: 1, connectTimeoutMS: 30000 };
module.exports.init = function(callback, connectionString, opts) {
if (connectionString) CONNECTION_URI = connectionString;
if (opts) options = opts;
if (process.env.MONGOHQ_URL !== undefined) CONNECTION_URI = encodeURIComponent(process.env.MONGOHQ_URL.trim());
if (process.env.MONGOHQ_URL !== undefined) CONNECTION_URI = process.env.MONGOHQ_URL.trim();

if (db.connection) {
return callback(null, db);
Expand Down

0 comments on commit 12f940a

Please sign in to comment.