Skip to content

Commit b3bd603

Browse files
fix github source-control init; bind new param to queue handler (#388)
1 parent 49b1666 commit b3bd603

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/stack/src/extract/extract-repository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const extractRepository = async (input: Input, userId: string) => {
4242
if (sourceControl === "gitlab") {
4343
context.integrations.sourceControl = new GitlabSourceControl(sourceControlAccessToken);
4444
} else if (sourceControl === "github") {
45-
if (sourceControl === 'github') return new GitHubSourceControl({ auth: sourceControlAccessToken });
45+
if (sourceControl === 'github')
46+
context.integrations.sourceControl = new GitHubSourceControl({ auth: sourceControlAccessToken });
4647
}
4748

4849
const { repository, namespace } = await getRepository({ externalRepositoryId: repositoryId, repositoryName, namespaceName }, { ...context, db });

apps/stack/stacks/ExtractStack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ export function ExtractStack({ stack }: StackContext) {
9595
REDIS_URL,
9696
REDIS_TOKEN,
9797
REDIS_USER_TOKEN_TTL,
98-
PER_PAGE
98+
PER_PAGE,
99+
FETCH_TIMELINE_EVENTS_PER_PAGE
99100
],
100101
handler: "src/extract/queue.handler",
101102
},

0 commit comments

Comments
 (0)