Merge branch 'main' into bkellam/repo_index_manager_prom_metrics

This commit is contained in:
Brendan Kellam 2025-10-21 20:43:16 -07:00 committed by GitHub
commit d202368be5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,8 +49,11 @@ export class GithubAppManager {
public async init(db: PrismaClient) {
this.db = db;
const config = await loadConfig(env.CONFIG_PATH!);
const githubApps = config.apps?.filter(app => app.type === 'githubApp') as GithubAppConfig[];
if (!config.apps) {
return;
}
const githubApps = config.apps.filter(app => app.type === 'githubApp') as GithubAppConfig[];
logger.info(`Found ${githubApps.length} GitHub apps in config`);
for (const app of githubApps) {