@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.mjs CHANGED
@@ -1932,7 +1932,7 @@ var SocketController = class _SocketController {
1932
1932
  if (err) {
1933
1933
  CadenzaService.log(
1934
1934
  "Socket timeout.",
1935
- { error: err, socketId: socket?.id, serviceName },
1935
+ { error: err.message, socketId: socket?.id, serviceName },
1936
1936
  "warning"
1937
1937
  );
1938
1938
  response = {
@@ -2588,8 +2588,7 @@ var DatabaseController = class _DatabaseController {
2588
2588
  await this.dbClient.query(`CREATE DATABASE ${databaseName}`);
2589
2589
  console.log(`Database ${databaseName} created`);
2590
2590
  this.dbClient = new Pool({
2591
- connectionString: process.env.DATABASE_ADDRESS ?? "",
2592
- database: databaseName,
2591
+ connectionString: process.env.DATABASE_ADDRESS ? process.env.DATABASE_ADDRESS + databaseName + "?sslmode=disable" : "",
2593
2592
  ssl: {
2594
2593
  rejectUnauthorized: false
2595
2594
  // ← This bypasses the chain validation error