diff --git a/package.json b/package.json index 2206b689..b3d141ca 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { "@oclif/core": "^3.12.0", - "@salesforce/core": "^6.2.3-qa.0", + "@salesforce/core": "^6.2.3-qa.1", "@salesforce/kit": "^3.0.15", "@salesforce/sf-plugins-core": "^5.0.5", "@salesforce/ts-types": "^2.0.9" diff --git a/src/commands/org/create/user.ts b/src/commands/org/create/user.ts index 162e0b26..143054a2 100644 --- a/src/commands/org/create/user.ts +++ b/src/commands/org/create/user.ts @@ -47,13 +47,6 @@ type FailureMsg = { message: string; }; -const permsetsStringToArray = (fieldsPermsets: string | string[] | undefined): string[] => { - if (!fieldsPermsets) return []; - return Array.isArray(fieldsPermsets) - ? fieldsPermsets - : fieldsPermsets.split(',').map((item) => item.replace("'", '').trim()); -}; - export class CreateUserCommand extends SfCommand { public static strict = false; public static readonly deprecateAliases = true; @@ -333,3 +326,10 @@ const getValidatedConnection = async (targetOrg: Org, apiVersion?: string): Prom } return conn; }; + +const permsetsStringToArray = (fieldsPermsets: string | string[] | undefined): string[] => { + if (!fieldsPermsets) return []; + return Array.isArray(fieldsPermsets) + ? fieldsPermsets + : fieldsPermsets.split(',').map((item) => item.replace("'", '').trim()); +}; diff --git a/yarn.lock b/yarn.lock index 95a0828e..e4f89d62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -927,10 +927,10 @@ strip-ansi "6.0.1" ts-retry-promise "^0.7.1" -"@salesforce/core@^5.3.20", "@salesforce/core@^6.1.0", "@salesforce/core@^6.2.0", "@salesforce/core@^6.2.3-qa.0": - version "6.2.3-qa.0" - resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.2.3-qa.0.tgz#e73c9162aa7de77e07569f1d398ad85231b30dc5" - integrity sha512-WiTPVEzAD7XE1OzlTFAEQH/tSf7OkMHOJmBzJLdH6k/plX9qvbeShUbpeo4MiKfG7l4m0DFiwK1OcLfB0Yg4yA== +"@salesforce/core@^5.3.20", "@salesforce/core@^6.1.0", "@salesforce/core@^6.2.0", "@salesforce/core@^6.2.3-qa.0", "@salesforce/core@^6.2.3-qa.1": + version "6.2.3-qa.1" + resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.2.3-qa.1.tgz#8defc764cd922fee22cd598ef67900fa25fe903f" + integrity sha512-WntKezbRycZeVE+GpTfjqHPudQg/mYSdBpbklimGbx7fGD0T/t9vZlx2HMUih6PmEoqwnqKMfm/LusE4BuE7Tg== dependencies: "@salesforce/kit" "^3.0.15" "@salesforce/schemas" "^1.6.1"