From ef77e212a01ac8206dff631145c5ecf3c478e18a Mon Sep 17 00:00:00 2001 From: msukkari Date: Tue, 21 Oct 2025 20:39:59 -0700 Subject: [PATCH] fix bug from github app pr --- packages/backend/src/ee/githubAppManager.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/ee/githubAppManager.ts b/packages/backend/src/ee/githubAppManager.ts index 2205b939..1a76d117 100644 --- a/packages/backend/src/ee/githubAppManager.ts +++ b/packages/backend/src/ee/githubAppManager.ts @@ -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) {