From fbcda1719ab36584606f8c21fcf97c761282b7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Tkaczy=C5=84ski?= Date: Mon, 29 Jul 2024 23:37:57 +0200 Subject: [PATCH 1/2] fix: read execution_strategy from event directly It's stored directly in the event, not under proposal. --- apps/api/src/writer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/api/src/writer.ts b/apps/api/src/writer.ts index b2232b8a0..9f9fac45c 100644 --- a/apps/api/src/writer.ts +++ b/apps/api/src/writer.ts @@ -565,16 +565,14 @@ export const handleUpdate: starknet.Writer = async ({ console.log('failed to update proposal metadata', e); } - /* const executionStrategy = await handleExecutionStrategy( - event.proposal.execution_strategy, + event.execution_strategy, event.payload ); if (executionStrategy) { proposal.execution_strategy_type = executionStrategy.executionStrategyType; proposal.quorum = executionStrategy.quorum; } - */ await proposal.save(); }; From 200430b90ae5cbd891c57734877ddf05906863aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Tkaczy=C5=84ski?= Date: Wed, 7 Aug 2024 22:07:51 +0200 Subject: [PATCH 2/2] chore: bring back .reset() --- apps/api/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index d1bbf2655..170f04eac 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -65,7 +65,7 @@ async function run() { await sleep(PRODUCTION_INDEXER_DELAY); } - // await checkpoint.reset(); + await checkpoint.reset(); checkpoint.start(); }