@joystick.js/node-canary 0.0.0-canary.85 → 0.0.0-canary.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,10 +23,9 @@ var postgresql_default = async (settings = {}, databasePort = 2610) => {
|
|
|
23
23
|
});
|
|
24
24
|
return {
|
|
25
25
|
pool,
|
|
26
|
-
query:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return response2?.rows || [];
|
|
26
|
+
query: (...args) => {
|
|
27
|
+
return pool.query(...args).then((response) => {
|
|
28
|
+
return response?.rows || [];
|
|
30
29
|
}).catch((error) => {
|
|
31
30
|
console.log(chalk.redBright(`
|
|
32
31
|
Failed SQL Statement:
|
|
@@ -40,8 +39,6 @@ Failed Values:
|
|
|
40
39
|
console.log(args[1]);
|
|
41
40
|
throw error;
|
|
42
41
|
});
|
|
43
|
-
client.release();
|
|
44
|
-
return response;
|
|
45
42
|
}
|
|
46
43
|
};
|
|
47
44
|
} catch (exception) {
|