Skip to content

Commit ef77e21

Browse files
committed
fix bug from github app pr
1 parent c2299aa commit ef77e21

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)