Skip to content

Commit

Permalink
Return promise in pMap
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Aug 6, 2024
1 parent 7953757 commit 7ca5a4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x-pack/plugins/fleet/server/services/package_policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,12 @@ class PackagePolicyClientImpl implements PackagePolicyClient {
await pMap(
packagePolicies,
(packagePolicy) => {
this.update(soClient, esClient, packagePolicy.id, getPackagePolicyUpdate(packagePolicy));
return this.update(
soClient,
esClient,
packagePolicy.id,
getPackagePolicyUpdate(packagePolicy)
);
},
{
concurrency: 50,
Expand Down

0 comments on commit 7ca5a4f

Please sign in to comment.