From 4e3bc4c2c15ec2dd9b7750bdf32a136a4e999a6b Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Mon, 24 Feb 2025 22:03:21 -0500 Subject: [PATCH] Added userId on other references to KeyConnectorService methods --- apps/cli/src/commands/convert-to-key-connector.command.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/cli/src/commands/convert-to-key-connector.command.ts b/apps/cli/src/commands/convert-to-key-connector.command.ts index 8c8a3fc9a10..8e1a7a6c9f3 100644 --- a/apps/cli/src/commands/convert-to-key-connector.command.ts +++ b/apps/cli/src/commands/convert-to-key-connector.command.ts @@ -39,7 +39,7 @@ export class ConvertToKeyConnectorCommand { ); } - const organization = await this.keyConnectorService.getManagingOrganization(); + const organization = await this.keyConnectorService.getManagingOrganization(this.userId); const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({ type: "list", @@ -71,7 +71,7 @@ export class ConvertToKeyConnectorCommand { throw e; } - await this.keyConnectorService.removeConvertAccountRequired(); + await this.keyConnectorService.removeConvertAccountRequired(this.userId); await this.keyConnectorService.setUsesKeyConnector(true, this.userId); // Update environment URL - required for api key login @@ -83,7 +83,7 @@ export class ConvertToKeyConnectorCommand { return Response.success(); } else if (answer.convert === "leave") { await this.organizationApiService.leave(organization.id); - await this.keyConnectorService.removeConvertAccountRequired(); + await this.keyConnectorService.removeConvertAccountRequired(this.userId); return Response.success(); } else { await this.logout();