Skip to content

Commit d2c8357

Browse files
committed
Update CippEntrypoints.psm1
1 parent a44cb7b commit d2c8357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CippEntrypoints/CippEntrypoints.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ function Receive-CippOrchestrationTrigger {
133133
}
134134

135135
if (!$OrchestratorInput.Batch -or ($OrchestratorInput.Batch | Measure-Object).Count -eq 0) {
136-
$Batch = @(Invoke-ActivityFunction -FunctionName 'CIPPActivityFunction' -Input $OrchestratorInput.QueueFunction -ErrorAction Stop)
136+
$Batch = (Invoke-ActivityFunction -FunctionName 'CIPPActivityFunction' -Input $OrchestratorInput.QueueFunction -ErrorAction Stop)
137137
} else {
138-
$Batch = @($OrchestratorInput.Batch)
138+
$Batch = $OrchestratorInput.Batch
139139
}
140140

141141
if (($Batch | Measure-Object).Count -gt 0) {

0 commit comments

Comments
 (0)