diff --git a/src/index.ts b/src/index.ts index 652c03a7..f422c92c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -240,11 +240,11 @@ async function main(): Promise { }); if (config.indexerEnabled) { - indexChainsPromise = indexChains(); + indexChainsPromise = indexChains(true); } if (config.runOnce && indexChainsPromise) { - await indexChains(); + await indexChainsPromise; baseLogger.info("exiting"); return; }