Skip to content

Commit

Permalink
Merge pull request #179 from dethancosta/multiple-accounts
Browse files Browse the repository at this point in the history
Add ability to use multiple accounts with the same server url
  • Loading branch information
jodyheavener authored May 21, 2024
2 parents 5ed6d6a + 46bcd51 commit 1b934cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export class Setup {
);
}

private setAccountUrlFlag() {
private setAccountIdFlag() {
setGlobalFlags({
account: this.accountUrl,
account: this.accountUuid,
});
}

Expand Down Expand Up @@ -70,7 +70,7 @@ export class Setup {
promptForVault = false;
}
} else {
this.setAccountUrlFlag();
this.setAccountIdFlag();
}

if (!this.accountUuid || !this.accountUrl) {
Expand Down Expand Up @@ -179,7 +179,7 @@ export class Setup {
account.account_uuid,
);
await this.core.context.secrets.store(STATE.ACCOUNT_URL, account.url);
this.setAccountUrlFlag();
this.setAccountIdFlag();

if (isChanged) {
await this.chooseVault();
Expand Down

0 comments on commit 1b934cf

Please sign in to comment.