mics: added missing github app connection usage

This commit is contained in:
Sheen Capadngan
2025-09-03 21:30:48 +08:00
parent ec39f84719
commit e00df2c659
2 changed files with 6 additions and 4 deletions
@@ -214,7 +214,7 @@ export const GithubSyncFns = {
const token =
connection.method === GitHubConnectionMethod.OAuth
? connection.credentials.accessToken
: await getGitHubAppAuthToken(connection, gatewayService);
: await getGitHubAppAuthToken(connection, gatewayService, gatewayV2Service);
const encryptedSecrets = await getEncryptedSecrets(secretSync, gatewayService, gatewayV2Service);
const publicKey = await getPublicKey(secretSync, gatewayService, gatewayV2Service, token);
@@ -272,7 +272,7 @@ export const GithubSyncFns = {
const token =
connection.method === GitHubConnectionMethod.OAuth
? connection.credentials.accessToken
: await getGitHubAppAuthToken(connection, gatewayService);
: await getGitHubAppAuthToken(connection, gatewayService, gatewayV2Service);
const encryptedSecrets = await getEncryptedSecrets(secretSync, gatewayService, gatewayV2Service);