@cadenza.io/service 2.17.37 → 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.
@@ -708,10 +708,11 @@ function buildServiceRegistryInsertQueryData(ctx, queryData) {
708
708
  };
709
709
  const resolvedData = Object.prototype.hasOwnProperty.call(ctx, "data") || ctx.data !== void 0 ? ctx.data : getJoinedValue("data");
710
710
  const resolvedBatch = Object.prototype.hasOwnProperty.call(ctx, "batch") || ctx.batch !== void 0 ? ctx.batch : getJoinedValue("batch");
711
- if (!("data" in nextQueryData) && (resolvedData !== void 0 || registrationData !== void 0)) {
712
- nextQueryData.data = resolvedData !== void 0 ? resolvedData && typeof resolvedData === "object" ? { ...resolvedData } : resolvedData : registrationData && typeof registrationData === "object" && !Array.isArray(registrationData) ? { ...registrationData } : registrationData;
711
+ const nextData = resolvedData !== void 0 ? resolvedData && typeof resolvedData === "object" ? { ...resolvedData } : resolvedData : registrationData && typeof registrationData === "object" && !Array.isArray(registrationData) ? { ...registrationData } : registrationData;
712
+ if (nextData !== void 0) {
713
+ nextQueryData.data = nextData;
713
714
  }
714
- if (!("batch" in nextQueryData) && resolvedBatch !== void 0) {
715
+ if (resolvedBatch !== void 0) {
715
716
  nextQueryData.batch = Array.isArray(resolvedBatch) ? resolvedBatch.map(
716
717
  (row) => row && typeof row === "object" ? { ...row } : row
717
718
  ) : resolvedBatch;