Skip to content

Commit

Permalink
fix: remove deprecated sfdx-core aliasAccessor method
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Apr 2, 2024
1 parent 0c6bc7d commit 1d976f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/org/create/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ export class CreateUserCommand extends SfCommand<CreateUserOutput> {
// Set the alias if specified
if (flags['set-alias']) {
const stateAggregator = await StateAggregator.getInstance();
stateAggregator.aliases.set(flags['set-alias'], fields.username);
await stateAggregator.aliases.write();
await stateAggregator.aliases.setAndSave(flags['set-alias'], fields.username);
}

fields.id = ensureString(newUserAuthInfo.getFields().userId);
Expand Down

0 comments on commit 1d976f1

Please sign in to comment.