@secondlayer/subgraphs 3.14.3 → 3.15.0

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.
@@ -303,7 +303,8 @@ class SubgraphContext {
303
303
  const clean = stripControlKeys(op.data);
304
304
  const idx = upsertKeys ? result.findIndex((r) => upsertKeys.every((k) => valEq(r[k], clean[k]))) : -1;
305
305
  if (idx >= 0) {
306
- result[idx] = this.applyOpToRow(op, result[idx], where) ?? result[idx];
306
+ const existing = result[idx];
307
+ result[idx] = this.applyOpToRow(op, existing, where) ?? existing;
307
308
  } else {
308
309
  const created = this.applyOpToRow(op, null, where);
309
310
  if (created)
@@ -2761,5 +2762,5 @@ export {
2761
2762
  backfillSubgraph
2762
2763
  };
2763
2764
 
2764
- //# debugId=7723AA51218664DB64756E2164756E21
2765
+ //# debugId=372352261D6E3BE664756E2164756E21
2765
2766
  //# sourceMappingURL=reindex.js.map