Skip to content

Commit

Permalink
refactor: use authinfo update instead of mutating getFields (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored Oct 13, 2023
1 parent e583028 commit 873cf39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/baseCommands/user/password/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export abstract class UserPasswordGenerateBaseCommand extends SfCommand<Generate
);

// userId is used by `assignPassword` so we need to set it here
authInfo.getFields().userId = result.Id;
authInfo.update({ userId: result.Id });
await user.assignPassword(authInfo, password);

password.value((pass) => {
Expand Down

0 comments on commit 873cf39

Please sign in to comment.