Skip to content

Conversation

mdonnalley
Copy link
Collaborator

What does this PR do?

Uses new hook interface from sf-plugins-core

What issues does this PR fix or reference?

@W-9811480@

@mdonnalley mdonnalley self-assigned this Aug 30, 2021
deployers = deployers.reduce((x, y) => x.concat(y), [] as Deployer[]);
const hookResults = await SfHook.run(this.config, 'sf:deploy', options);

let deployers = hookResults.successes.map((s) => s.result).reduce((x, y) => x.concat(y), [] as Deployer[]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdonnalley can reduce be replaced with flatMap()?

@mdonnalley mdonnalley requested a review from peternhale August 30, 2021 21:15
@mdonnalley mdonnalley merged commit bf81d08 into main Sep 2, 2021
@mdonnalley mdonnalley deleted the mdonnalley/sf-plugins-core branch September 2, 2021 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants