diff --git a/lib/connection-parameters.js b/lib/connection-parameters.js index 0c31b78..5af7547 100644 --- a/lib/connection-parameters.js +++ b/lib/connection-parameters.js @@ -4,8 +4,8 @@ var path = require('path'); var defaults = require(__dirname + '/defaults'); var val = function(key, config) { - return config[key] || - process.env['PG' + key.toUpperCase()] || + return config[key] || + process.env['PG' + key.toUpperCase()] || defaults[key]; };