From dbbeaf7b0b5da3bcbe8f9222bee5b635f33ea267 Mon Sep 17 00:00:00 2001 From: nftchance Date: Sun, 11 Feb 2024 22:13:15 -0600 Subject: [PATCH] fix: weird processCollection bug --- src/core/engine/engine.ts | 6 ++++++ tsconfig.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/engine/engine.ts b/src/core/engine/engine.ts index 619129b..e3d9c54 100644 --- a/src/core/engine/engine.ts +++ b/src/core/engine/engine.ts @@ -35,6 +35,12 @@ export class Engine< const strategiesPromises = Object.entries(this.strategies).map( async ([name, strategy]) => { + console.log(`Running: ${name}`) + + // ! If the strategy does not have a processCollection method + // then we don't need to do anything and can move on to the next. + if (strategy.processCollection === undefined) return + // ! Initialize the backfilled state. if (strategy.syncState) await strategy.syncState() diff --git a/tsconfig.json b/tsconfig.json index fac9857..b658e2c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,6 @@ "@/*": ["src/*"] } }, - // "include": ["src/**/*"], + "include": ["src/**/*"], "exclude": ["node_modules/", "references/", "dist", "tsup.config.ts"] }