Skip to content

Commit

Permalink
Merge pull request #19 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
pull[bot] authored Feb 17, 2025
2 parents c9f008a + 7f19c2a commit bf04124
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ function Invoke-ListGraphRequest {
}

$Metadata = $GraphRequestParams
if ($Request.Headers.'x-ms-coldstart' -eq 1) {
$Metadata.ColdStart = $true
}

try {
$Results = Get-GraphRequestList @GraphRequestParams
Expand All @@ -142,6 +139,11 @@ function Invoke-ListGraphRequest {
$Results = @()
}
}

if ($Request.Headers.'x-ms-coldstart' -eq 1) {
$Metadata.ColdStart = $true
}

$GraphRequestData = [PSCustomObject]@{
Results = @($Results)
Metadata = $Metadata
Expand Down

0 comments on commit bf04124

Please sign in to comment.