From 2f29ec9013118309b3ba9453892358c2b7463544 Mon Sep 17 00:00:00 2001 From: vrtnd Date: Tue, 18 Jun 2024 19:14:51 +0300 Subject: [PATCH] Fix --- src/handlers/runAllAdapters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/runAllAdapters.ts b/src/handlers/runAllAdapters.ts index e8949a34..95b64a6b 100644 --- a/src/handlers/runAllAdapters.ts +++ b/src/handlers/runAllAdapters.ts @@ -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));