@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.mjs CHANGED
@@ -2400,6 +2400,7 @@ var DatabaseController = class _DatabaseController {
2400
2400
  "Generate tasks",
2401
2401
  (ctx) => {
2402
2402
  const { table, tableName, options } = ctx;
2403
+ console.log(tableName, options);
2403
2404
  this.createDatabaseTask(
2404
2405
  "query",
2405
2406
  tableName,
@@ -3344,6 +3345,7 @@ var CadenzaService = class {
3344
3345
  this.bootstrap();
3345
3346
  Cadenza.validateName(serviceName);
3346
3347
  this.validateServiceName(serviceName);
3348
+ this.serviceRegistry.serviceName = serviceName;
3347
3349
  options = __spreadValues({
3348
3350
  loadBalance: true,
3349
3351
  useSocket: true,
@@ -3430,6 +3432,7 @@ var CadenzaService = class {
3430
3432
  if (this.serviceCreated) return;
3431
3433
  this.bootstrap();
3432
3434
  DatabaseController.instance;
3435
+ this.serviceRegistry.serviceName = name;
3433
3436
  options = __spreadValues({
3434
3437
  loadBalance: true,
3435
3438
  useSocket: true,
@@ -3450,7 +3453,8 @@ var CadenzaService = class {
3450
3453
  }, options);
3451
3454
  Cadenza.broker.emit("meta.database_init_requested", {
3452
3455
  schema,
3453
- databaseName: options.databaseName
3456
+ databaseName: options.databaseName,
3457
+ options
3454
3458
  });
3455
3459
  Cadenza.createEphemeralMetaTask("Set database connection", () => {
3456
3460
  console.log("Database service created");