Skip to content

Commit 639c690

Browse files
fix breach check exec ution
1 parent abd014a commit 639c690

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using namespace System.Net
22

3-
Function Invoke-ExecBreachSearch {
3+
function Invoke-ExecBreachSearch {
44
<#
55
.FUNCTIONALITY
66
Entrypoint
@@ -15,13 +15,13 @@ Function Invoke-ExecBreachSearch {
1515
Write-LogMessage -headers $Headers -API $APIName -message 'Accessed this API' -Sev 'Debug'
1616

1717
# Interact with query parameters or the body of the request.
18-
$TenantFilter = $Request.query.tenantFilter
18+
$TenantFilter = $Request.body.tenantFilter
1919

2020
#Move to background job
2121
New-BreachTenantSearch -TenantFilter $TenantFilter
2222
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
2323
StatusCode = [HttpStatusCode]::OK
24-
Body = @{ Results = "Executing Search for $TenantFilter" }
24+
Body = @{ Results = "Executing Search for $TenantFilter. This may take up to 24 hours to complete." }
2525
})
2626

2727
}

0 commit comments

Comments
 (0)