Skip to content

Commit c40164c

Browse files
committed
add output binding
1 parent 2ce910b commit c40164c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-ExecExtensionNinjaOneQueue.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,13 @@ Function Invoke-ExecExtensionNinjaOneQueue {
1818
'SyncTenant' { Invoke-NinjaOneTenantSync -QueueItem $QueueItem }
1919
}
2020

21+
$Body = [PSCustomObject]@{
22+
StatusCode = [HttpStatusCode]::OK
23+
Body = 'Success'
24+
}
25+
26+
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
27+
StatusCode = [HttpStatusCode]::OK
28+
Body = $Body
29+
})
2130
}

0 commit comments

Comments
 (0)