QFIX: Github service startup (#9251)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-06-16 15:33:05 +07:00
committed by GitHub
parent d98b8e3876
commit a432281513
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -112,7 +112,7 @@ export class PlatformWorker {
}
async init (ctx: MeasureContext): Promise<void> {
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<void> {
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',
+1 -1
View File
@@ -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)
}