diff --git a/services/github/pod-github/src/platform.ts b/services/github/pod-github/src/platform.ts index 53eea0ea11..8f41bb5b97 100644 --- a/services/github/pod-github/src/platform.ts +++ b/services/github/pod-github/src/platform.ts @@ -112,7 +112,7 @@ export class PlatformWorker { } async init (ctx: MeasureContext): Promise { - const sysToken = generateToken(systemAccountUuid, '' as WorkspaceUuid, { service: 'github' }) + const sysToken = generateToken(systemAccountUuid, undefined, { service: 'github' }) const accountsClient = getAccountClient(config.AccountsURL, sysToken) const allIntegrations = await accountsClient.listIntegrations({ kind: 'github' }) @@ -224,7 +224,7 @@ export class PlatformWorker { installationId: number, accountId: PersonId ): Promise { - const sysToken = generateToken(systemAccountUuid, '' as WorkspaceUuid, { service: 'github' }) + const sysToken = generateToken(systemAccountUuid, undefined, { service: 'github' }) const accountsClient = getAccountClient(config.AccountsURL, sysToken) const oldInstallation = this.integrations.find((it) => it.installationId === installationId) @@ -803,7 +803,7 @@ export class PlatformWorker { } this.integrations = this.integrations.filter((it) => it.installationId !== installId) if (interg !== undefined) { - const sysToken = generateToken(systemAccountUuid, '' as WorkspaceUuid, { service: 'github' }) + const sysToken = generateToken(systemAccountUuid, undefined, { service: 'github' }) const sysAccountClient = getAccountClient(config.AccountsURL, sysToken) await sysAccountClient.deleteIntegration({ kind: 'github', diff --git a/services/github/pod-github/src/users.ts b/services/github/pod-github/src/users.ts index 6500a2fc2c..c698d1cf34 100644 --- a/services/github/pod-github/src/users.ts +++ b/services/github/pod-github/src/users.ts @@ -11,7 +11,7 @@ export class UserManager { accountClient: AccountClient constructor () { - const sysToken = generateToken(systemAccountUuid, '' as WorkspaceUuid, { service: 'github' }) + const sysToken = generateToken(systemAccountUuid, undefined, { service: 'github' }) this.accountClient = getAccountClient(sysToken, 30000) }