diff --git a/contributing/metadata.md b/contributing/metadata.md index a8233f901..ebeca6aa6 100644 --- a/contributing/metadata.md +++ b/contributing/metadata.md @@ -29,8 +29,6 @@ The test is manually run, the file is committed to `patch`, and the output is ma If your metadata type is simple and already in the file, run `yarn update-registry-org ` (you'll see warnings if your type is missing or too complex for the script to handle) -Running the script with no params will try to do ALL missing metadata types. - ### Path 2: Using Describe from an Org > Note: The script asks your org for describe information about your type. Make sure that `sf org list metadata-types` returns the correct information for your type. diff --git a/scripts/update-registry/updateRegistryFromOrg.ts b/scripts/update-registry/updateRegistryFromOrg.ts index e938cdf35..1bb3f1019 100644 --- a/scripts/update-registry/updateRegistryFromOrg.ts +++ b/scripts/update-registry/updateRegistryFromOrg.ts @@ -14,7 +14,7 @@ const getMissingTypesAsDescribeResult = async (missingTypes: string[]): Promise< ]) ); // get the missingTypes from the describe - return missingTypes.map(([key]) => metadataObjectsByName.get(key)).filter(isDefined); + return missingTypes.map((key) => metadataObjectsByName.get(key)).filter(isDefined); }; /** massage for slight differences between the 2 types */