We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25ed325 commit ab5a0cbCopy full SHA for ab5a0cb
test/init.js
@@ -17,16 +17,16 @@ if (process.env.CI) {
17
};
18
}
19
20
-var url = 'postgres://' + config.username || config.user + ':' +
21
- config.password + '@' + config.host || config.hostname + ':' +
+var url = 'postgres://' + (config.username || config.user) + ':' +
+ config.password + '@' + (config.host || config.hostname) + ':' +
22
config.port + '/' + config.database;
23
24
global.getDataSource = global.getSchema = function(useUrl) {
25
var settings = config;
26
if (useUrl) {
27
settings = {url: url};
28
29
- var db = new DataSource(require('../'), config);
+ var db = new DataSource(require('../'), settings);
30
db.log = function(a) {
31
// console.log(a);
32
0 commit comments