@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.
package/dist/src/index.js CHANGED
@@ -2642,7 +2642,11 @@ async function reindexSubgraph(def, opts) {
2642
2642
  for (const stmt of statements) {
2643
2643
  await client.unsafe(stmt);
2644
2644
  }
2645
- logger6.info("Schema recreated for reindex", { subgraph: subgraphName });
2645
+ await updateSubgraphStatus2(targetDb, subgraphName, "reindexing", Math.max(0, fromBlock - 1));
2646
+ logger6.info("Schema recreated for reindex", {
2647
+ subgraph: subgraphName,
2648
+ cursorResetTo: Math.max(0, fromBlock - 1)
2649
+ });
2646
2650
  await targetDb.updateTable("subgraphs").set({
2647
2651
  last_processed_block: initialReindexProgressBlock(fromBlock),
2648
2652
  reindex_from_block: fromBlock,
@@ -4019,5 +4023,5 @@ export {
4019
4023
  ByoBreakingChangeError
4020
4024
  };
4021
4025
 
4022
- //# debugId=4F9187B8B213FB0764756E2164756E21
4026
+ //# debugId=9ABB4400810C6A0464756E2164756E21
4023
4027
  //# sourceMappingURL=index.js.map