@cadenza.io/service 2.3.7 → 2.3.8
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.
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1980,7 +1980,7 @@ var SocketController = class _SocketController {
|
|
|
1980
1980
|
if (err) {
|
|
1981
1981
|
CadenzaService.log(
|
|
1982
1982
|
"Socket timeout.",
|
|
1983
|
-
{ error: err, socketId: socket?.id, serviceName },
|
|
1983
|
+
{ error: err.message, socketId: socket?.id, serviceName },
|
|
1984
1984
|
"warning"
|
|
1985
1985
|
);
|
|
1986
1986
|
response = {
|
|
@@ -2636,8 +2636,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
2636
2636
|
await this.dbClient.query(`CREATE DATABASE ${databaseName}`);
|
|
2637
2637
|
console.log(`Database ${databaseName} created`);
|
|
2638
2638
|
this.dbClient = new import_pg.Pool({
|
|
2639
|
-
connectionString: process.env.DATABASE_ADDRESS
|
|
2640
|
-
database: databaseName,
|
|
2639
|
+
connectionString: process.env.DATABASE_ADDRESS ? process.env.DATABASE_ADDRESS + databaseName + "?sslmode=disable" : "",
|
|
2641
2640
|
ssl: {
|
|
2642
2641
|
rejectUnauthorized: false
|
|
2643
2642
|
// ← This bypasses the chain validation error
|