Skip to content

Commit

Permalink
Update Invoke-ListAuditLogSearches.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Oct 3, 2024
1 parent bfd1ab1 commit 122440b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Invoke-ListAuditLogSearches {
'Searches' {
$Results = Get-CippAuditLogSearches -TenantFilter $Request.Query.TenantFilter
$Body = @{
Results = $Results
Results = @($Results)
Metadata = @{
TenantFilter = $Request.Query.TenantFilter
TotalSearches = $Results.Count
Expand All @@ -22,7 +22,7 @@ function Invoke-ListAuditLogSearches {
'SearchResults' {
$Results = Get-CippAuditLogSearchResults -TenantFilter $Request.Query.TenantFilter -QueryId $Request.Query.SearchId
$Body = @{
Results = $Results
Results = @($Results)
Metadata = @{
SearchId = $Request.Query.SearchId
TenantFilter = $Request.Query.TenantFilter
Expand Down Expand Up @@ -55,7 +55,7 @@ function Invoke-ListAuditLogSearches {
}

$Body = @{
Results = $Results
Results = @($Results)
Metadata = @{
StartTime = $StartTime
TenantFilter = $Request.Query.TenantFilter
Expand Down

0 comments on commit 122440b

Please sign in to comment.