Skip to content

Commit def80ca

Browse files
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into dev
2 parents 20ba91b + 6f5a133 commit def80ca

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsApplyBatch.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

Modules/CippEntrypoints/CippEntrypoints.psm1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)