@secondlayer/subgraphs 3.14.0 → 3.14.1

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.
@@ -2564,7 +2564,11 @@ async function reindexSubgraph(def, opts) {
2564
2564
  for (const stmt of statements) {
2565
2565
  await client.unsafe(stmt);
2566
2566
  }
2567
- logger6.info("Schema recreated for reindex", { subgraph: subgraphName });
2567
+ await updateSubgraphStatus2(targetDb, subgraphName, "reindexing", Math.max(0, fromBlock - 1));
2568
+ logger6.info("Schema recreated for reindex", {
2569
+ subgraph: subgraphName,
2570
+ cursorResetTo: Math.max(0, fromBlock - 1)
2571
+ });
2568
2572
  await targetDb.updateTable("subgraphs").set({
2569
2573
  last_processed_block: initialReindexProgressBlock(fromBlock),
2570
2574
  reindex_from_block: fromBlock,
@@ -3485,5 +3489,5 @@ export {
3485
3489
  startSubgraphOperationRunner
3486
3490
  };
3487
3491
 
3488
- //# debugId=D7F138F6BEB6BA7164756E2164756E21
3492
+ //# debugId=70CBEF0F981F457C64756E2164756E21
3489
3493
  //# sourceMappingURL=processor.js.map