uberf-7927: get rid of product id (#6375)

This commit is contained in:
Alexey Zinoviev
2024-08-22 21:10:59 +07:00
committed by GitHub
parent 23b5e35be7
commit 4d5d229364
68 changed files with 314 additions and 562 deletions
+4 -6
View File
@@ -221,7 +221,7 @@ export class PlatformWorker {
} else {
let client: Client | undefined
try {
client = await createPlatformClient(oldWorkspace, config.ProductID, 30000)
client = await createPlatformClient(oldWorkspace, 30000)
await this.removeInstallationFromWorkspace(oldWorker, installationId)
await client.close()
} catch (err: any) {
@@ -290,7 +290,7 @@ export class PlatformWorker {
} else {
let client: Client | undefined
try {
client = await createPlatformClient(workspace, config.ProductID, 30000)
client = await createPlatformClient(workspace, 30000)
await GithubWorker.checkIntegrations(client, this.installations)
await client.close()
} catch (err: any) {
@@ -388,7 +388,7 @@ export class PlatformWorker {
platformClient = this.clients.get(payload.workspace)?.client
if (platformClient === undefined) {
shouldClose = true
platformClient = await createPlatformClient(payload.workspace, config.ProductID, 30000)
platformClient = await createPlatformClient(payload.workspace, 30000)
}
const client = new TxOperations(platformClient, payload.accountId)
@@ -657,8 +657,7 @@ export class PlatformWorker {
const token = generateToken(
config.SystemEmail,
{
name: workspace,
productId: config.ProductID
name: workspace
},
{ mode: 'github' }
)
@@ -697,7 +696,6 @@ export class PlatformWorker {
this.installations,
{
name: workspace,
productId: config.ProductID,
workspaceUrl: workspaceInfo.workspace,
workspaceName: workspace
},