@cadenza.io/service 2.17.39 → 2.17.40

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.
@@ -6184,10 +6184,10 @@ function buildSyncInsertQueryData(ctx, queryData = {}) {
6184
6184
  };
6185
6185
  const resolvedData = Object.prototype.hasOwnProperty.call(ctx, "data") || ctx.data !== void 0 ? ctx.data : getJoinedContextValue(ctx, "data");
6186
6186
  const resolvedBatch = Object.prototype.hasOwnProperty.call(ctx, "batch") || ctx.batch !== void 0 ? ctx.batch : getJoinedContextValue(ctx, "batch");
6187
- if (!("data" in nextQueryData) && resolvedData !== void 0) {
6187
+ if (resolvedData !== void 0) {
6188
6188
  nextQueryData.data = resolvedData && typeof resolvedData === "object" && !Array.isArray(resolvedData) ? { ...resolvedData } : resolvedData;
6189
6189
  }
6190
- if (!("batch" in nextQueryData) && resolvedBatch !== void 0) {
6190
+ if (resolvedBatch !== void 0) {
6191
6191
  nextQueryData.batch = Array.isArray(resolvedBatch) ? resolvedBatch.map(
6192
6192
  (row) => row && typeof row === "object" ? { ...row } : row
6193
6193
  ) : resolvedBatch;