@cadenza.io/service 1.9.11 → 1.9.13

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 CHANGED
@@ -2447,6 +2447,7 @@ var DatabaseController = class _DatabaseController {
2447
2447
  "Generate tasks",
2448
2448
  (ctx) => {
2449
2449
  const { table, tableName, options } = ctx;
2450
+ console.log(tableName, options);
2450
2451
  this.createDatabaseTask(
2451
2452
  "query",
2452
2453
  tableName,
@@ -3391,6 +3392,7 @@ var CadenzaService = class {
3391
3392
  this.bootstrap();
3392
3393
  import_core3.default.validateName(serviceName);
3393
3394
  this.validateServiceName(serviceName);
3395
+ this.serviceRegistry.serviceName = serviceName;
3394
3396
  options = __spreadValues({
3395
3397
  loadBalance: true,
3396
3398
  useSocket: true,
@@ -3477,6 +3479,7 @@ var CadenzaService = class {
3477
3479
  if (this.serviceCreated) return;
3478
3480
  this.bootstrap();
3479
3481
  DatabaseController.instance;
3482
+ this.serviceRegistry.serviceName = name;
3480
3483
  options = __spreadValues({
3481
3484
  loadBalance: true,
3482
3485
  useSocket: true,
@@ -3497,7 +3500,8 @@ var CadenzaService = class {
3497
3500
  }, options);
3498
3501
  import_core3.default.broker.emit("meta.database_init_requested", {
3499
3502
  schema,
3500
- databaseName: options.databaseName
3503
+ databaseName: options.databaseName,
3504
+ options
3501
3505
  });
3502
3506
  import_core3.default.createEphemeralMetaTask("Set database connection", () => {
3503
3507
  console.log("Database service created");