File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
CIPPCore/Public/Entrypoints/Activity Triggers/Standards Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ function Push-CIPPStandardsApplyBatch {
77
88 try {
99 # Aggregate all standards from all tenants
10- $AllStandards = @ ($Item.Results | Where-Object { $_ -and $_.FunctionName -eq ' CIPPStandard' })
10+ $AllStandards = $Item.Results | ForEach-Object {
11+ foreach ($Standard in $_ ) {
12+ if ($Standard -and $Standard.FunctionName -eq ' CIPPStandard' ) {
13+ $Standard
14+ }
15+ }
16+ }
1117
1218 if ($AllStandards.Count -eq 0 ) {
1319 Write-Information ' No standards to apply across all tenants'
Original file line number Diff line number Diff line change @@ -240,10 +240,9 @@ function Receive-CippOrchestrationTrigger {
240240 $Output = $Output | Where-Object { $_.GetType ().Name -eq ' ActivityInvocationTask' }
241241 if (($Output | Measure-Object ).Count -gt 0 ) {
242242 Write-Information " Waiting for ($ ( $Output.Count ) ) activity functions to complete..."
243- foreach ($Task in $Output ) {
244- # Write-Information ($Task | ConvertTo-Json -Depth 10 -Compress)
243+ $Results = foreach ($Task in $Output ) {
245244 try {
246- $Results = Wait-ActivityFunction - Task $Task
245+ Wait-ActivityFunction - Task $Task
247246 } catch {}
248247 }
249248 } else {
You can’t perform that action at this time.
0 commit comments