Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Jun 18, 2024
1 parent df5128e commit 2f29ec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/runAllAdapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export default wrapScheduledLambda(async (_event) => {
return acc;
}, {});

const lastBlocksByName = Object.keys(lastRecordedBlocks).reduce((acc: any, bridgeId: any) => {
const lastBlocksByName = Object.keys(lastRecordedBlocks[0].result).reduce((acc: any, bridgeId: any) => {
acc[`${bridgeConfigById[bridgeId].bridge_name}-${bridgeConfigById[bridgeId].chain}`] =
lastRecordedBlocks[bridgeId];
lastRecordedBlocks[0].result[bridgeId];
return acc;
}, {});
await store("lastRecordedBlocks.json", JSON.stringify(lastBlocksByName));
Expand Down

0 comments on commit 2f29ec9

Please sign in to comment.