Skip to content

Commit 48c2521

Browse files
authored
Merge pull request #374 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 668310f + 639c690 commit 48c2521

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)