Skip to content

Commit

Permalink
fix: weird processCollection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nftchance committed Feb 12, 2024
1 parent aff7942 commit dbbeaf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/core/engine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@/*": ["src/*"]
}
},
// "include": ["src/**/*"],
"include": ["src/**/*"],
"exclude": ["node_modules/", "references/", "dist", "tsup.config.ts"]
}

0 comments on commit dbbeaf7

Please sign in to comment.