Skip to content

Commit

Permalink
store recorded blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Jun 18, 2024
1 parent 1886c3c commit 31af132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers/runAllAdapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ export default wrapScheduledLambda(async (_event) => {
) subquery;
`;
try {
await store("lastRecordedBlocks.json", lastRecordedBlocks[0].result);
await store("lastRecordedBlocks.json", JSON.stringify(lastRecordedBlocks[0].result));
console.log("Stored last recorded blocks");
} catch (e) {
console.error("Failed to store last recorded blocks");
console.error(e);
}
for (let i = 0; i < bridgeNetworks.length; i++) {
Expand Down

0 comments on commit 31af132

Please sign in to comment.