@cadenza.io/service 2.17.12 → 2.17.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.
@@ -7269,8 +7269,10 @@ var CadenzaService = class {
7269
7269
  this.bootstrap();
7270
7270
  this.validateName(tableName);
7271
7271
  this.validateName(operation);
7272
- const name = `${operation.charAt(0).toUpperCase() + operation.slice(1)} ${tableName} in ${databaseServiceName ?? "default database service"}`;
7273
- const description = `Executes a ${operation} on table ${tableName} in ${databaseServiceName ?? "default database service"}`;
7272
+ const resolvedDatabaseServiceName = databaseServiceName ?? this.defaultDatabaseServiceName ?? void 0;
7273
+ const targetDatabaseServiceName = resolvedDatabaseServiceName ?? "default database service";
7274
+ const name = `${operation.charAt(0).toUpperCase() + operation.slice(1)} ${tableName} in ${targetDatabaseServiceName}`;
7275
+ const description = `Executes a ${operation} on table ${tableName} in ${targetDatabaseServiceName}`;
7274
7276
  const taskName = `${operation.charAt(0).toUpperCase() + operation.slice(1)} ${tableName}`;
7275
7277
  options = {
7276
7278
  concurrency: 100,
@@ -7294,7 +7296,7 @@ var CadenzaService = class {
7294
7296
  return new DatabaseTask(
7295
7297
  name,
7296
7298
  taskName,
7297
- databaseServiceName,
7299
+ resolvedDatabaseServiceName,
7298
7300
  description,
7299
7301
  queryData,
7300
7302
  options.concurrency,
@@ -7669,6 +7671,7 @@ var CadenzaService = class {
7669
7671
  this.bootstrap();
7670
7672
  this.validateName(name);
7671
7673
  this.validateServiceName(name);
7674
+ this.defaultDatabaseServiceName = name;
7672
7675
  const databaseController = DatabaseController.instance;
7673
7676
  const actorOptions = this.normalizePostgresActorOptions(name, {
7674
7677
  ...options,
@@ -8227,6 +8230,7 @@ var CadenzaService = class {
8227
8230
  this.serviceRegistry?.reset();
8228
8231
  this.isBootstrapped = false;
8229
8232
  this.serviceCreated = false;
8233
+ this.defaultDatabaseServiceName = null;
8230
8234
  this.warnedInvalidMetaIntentResponderKeys = /* @__PURE__ */ new Set();
8231
8235
  this.hydratedInquiryResults = /* @__PURE__ */ new Map();
8232
8236
  this.frontendSyncScheduled = false;
@@ -8234,6 +8238,7 @@ var CadenzaService = class {
8234
8238
  };
8235
8239
  CadenzaService.isBootstrapped = false;
8236
8240
  CadenzaService.serviceCreated = false;
8241
+ CadenzaService.defaultDatabaseServiceName = null;
8237
8242
  CadenzaService.warnedInvalidMetaIntentResponderKeys = /* @__PURE__ */ new Set();
8238
8243
  CadenzaService.hydratedInquiryResults = /* @__PURE__ */ new Map();
8239
8244
  CadenzaService.frontendSyncScheduled = false;