Skip to content

Commit d202368

Browse files
Merge branch 'main' into bkellam/repo_index_manager_prom_metrics
2 parents 5ce64cf + ef77e21 commit d202368

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/backend/src/ee/githubAppManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ export class GithubAppManager {
4949
public async init(db: PrismaClient) {
5050
this.db = db;
5151
const config = await loadConfig(env.CONFIG_PATH!);
52-
const githubApps = config.apps?.filter(app => app.type === 'githubApp') as GithubAppConfig[];
52+
if (!config.apps) {
53+
return;
54+
}
5355

56+
const githubApps = config.apps.filter(app => app.type === 'githubApp') as GithubAppConfig[];
5457
logger.info(`Found ${githubApps.length} GitHub apps in config`);
5558

5659
for (const app of githubApps) {

0 commit comments

Comments
 (0)