Skip to content

Commit 7588759

Browse files
committed
supply array for extension sync
1 parent 968f43c commit 7588759

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Extensions/Invoke-ListExtensionSync.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ Function Invoke-ListExtensionSync {
5050
$AllTasksArrayList.Add($TaskEntry)
5151
}
5252
}
53-
Write-Host ($AllTasksArrayList | ConvertTo-Json -Depth 5 -Compress)
54-
# Associate values to output bindings by calling 'Push-OutputBinding'.
53+
5554
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
5655
StatusCode = [HttpStatusCode]::OK
57-
Body = ConvertTo-Json -Depth 5 -InputObject $($AllTasksArrayList)
56+
Body = ConvertTo-Json -Depth 5 -InputObject @($AllTasksArrayList)
5857
})
5958
}

0 commit comments

Comments
 (0)