@cadenza.io/service 2.17.36 → 2.17.38

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
@@ -759,10 +759,11 @@ function buildServiceRegistryInsertQueryData(ctx, queryData) {
759
759
  };
760
760
  const resolvedData = Object.prototype.hasOwnProperty.call(ctx, "data") || ctx.data !== void 0 ? ctx.data : getJoinedValue("data");
761
761
  const resolvedBatch = Object.prototype.hasOwnProperty.call(ctx, "batch") || ctx.batch !== void 0 ? ctx.batch : getJoinedValue("batch");
762
- if (!("data" in nextQueryData) && (resolvedData !== void 0 || registrationData !== void 0)) {
763
- nextQueryData.data = resolvedData !== void 0 ? resolvedData && typeof resolvedData === "object" ? { ...resolvedData } : resolvedData : registrationData && typeof registrationData === "object" && !Array.isArray(registrationData) ? { ...registrationData } : registrationData;
762
+ const nextData = resolvedData !== void 0 ? resolvedData && typeof resolvedData === "object" ? { ...resolvedData } : resolvedData : registrationData && typeof registrationData === "object" && !Array.isArray(registrationData) ? { ...registrationData } : registrationData;
763
+ if (nextData !== void 0) {
764
+ nextQueryData.data = nextData;
764
765
  }
765
- if (!("batch" in nextQueryData) && resolvedBatch !== void 0) {
766
+ if (resolvedBatch !== void 0) {
766
767
  nextQueryData.batch = Array.isArray(resolvedBatch) ? resolvedBatch.map(
767
768
  (row) => row && typeof row === "object" ? { ...row } : row
768
769
  ) : resolvedBatch;
@@ -879,7 +880,7 @@ function resolveServiceRegistryInsertTask(tableName, queryData = {}, options = {
879
880
  prepareTask.then(targetTask);
880
881
  };
881
882
  wireExecutionTarget(remoteInsertTask, prepareRemoteExecutionTask);
882
- return CadenzaService.createUniqueMetaTask(
883
+ return CadenzaService.createMetaTask(
883
884
  `Resolve service registry insert for ${tableName}`,
884
885
  (ctx, emit) => new Promise((resolve) => {
885
886
  const resolverRequestId = (0, import_uuid3.v4)();
@@ -8745,7 +8746,7 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
8745
8746
  );
8746
8747
  targetTask.then(finalizeExecutionTask).emitsOnFail(executionFailedSignal);
8747
8748
  prepareExecutionTask.then(targetTask);
8748
- return CadenzaService.createUniqueMetaTask(
8749
+ return CadenzaService.createMetaTask(
8749
8750
  `Resolve graph sync insert for ${tableName}`,
8750
8751
  (ctx, emit) => new Promise((resolve) => {
8751
8752
  const resolverRequestId = (0, import_uuid6.v4)();