1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 04:33:38 +00:00

Added userId on other references to KeyConnectorService methods

This commit is contained in:
Todd Martin
2025-02-24 22:03:21 -05:00
parent 880ae5f193
commit 4e3bc4c2c1

View File

@@ -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();