mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
fix bug from github app pr
This commit is contained in:
parent
c2299aa86b
commit
ef77e212a0
1 changed files with 4 additions and 1 deletions
|
|
@ -49,8 +49,11 @@ export class GithubAppManager {
|
||||||
public async init(db: PrismaClient) {
|
public async init(db: PrismaClient) {
|
||||||
this.db = db;
|
this.db = db;
|
||||||
const config = await loadConfig(env.CONFIG_PATH!);
|
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`);
|
logger.info(`Found ${githubApps.length} GitHub apps in config`);
|
||||||
|
|
||||||
for (const app of githubApps) {
|
for (const app of githubApps) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue