@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 +6 -2
- package/dist/src/index.js.map +3 -3
- package/dist/src/runtime/processor.js +6 -2
- package/dist/src/runtime/processor.js.map +3 -3
- package/dist/src/runtime/reindex.js +6 -2
- package/dist/src/runtime/reindex.js.map +3 -3
- package/dist/src/service.js +6 -2
- package/dist/src/service.js.map +3 -3
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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=
|
|
3492
|
+
//# debugId=70CBEF0F981F457C64756E2164756E21
|
|
3489
3493
|
//# sourceMappingURL=processor.js.map
|