Skip to content

Commit

Permalink
Merge pull request #70 from sourcefuse/fix/github-sync-env
Browse files Browse the repository at this point in the history
fix: github sync env fix for false or any false value
  • Loading branch information
James Crowley authored Nov 28, 2023
2 parents 4a249e7 + 7d21eb5 commit ea1798a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/src/plugins/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default async function createPlugin(

const {processingEngine, router} = await builder.build();
await processingEngine.start();
if (process.env.ENABLE_GITHUB_SYNC) {
const githubSyncEnv = process.env.ENABLE_GITHUB_SYNC;
if (githubSyncEnv && !['0', 'false', 'no', 'n', ''].includes(githubSyncEnv.toLowerCase())) {
await gitProvider.read();
}
return router;
Expand Down

0 comments on commit ea1798a

Please sign in to comment.