Skip to content

Commit

Permalink
fix message trace sender/recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Jan 8, 2025
1 parent 731e240 commit 6703fb4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ Function Invoke-ListMessageTrace {
}
}

if (![string]::IsNullOrEmpty($Request.Body.recipient)) {
if ($Request.Body.recipient) {
$Searchparams.Add('RecipientAddress', $($Request.Body.recipient.value ?? $Request.Body.recipient))
}
if (![string]::IsNullOrEmpty($Request.Body.sender)) {
if ($Request.Body.sender) {
$Searchparams.Add('SenderAddress', $($Request.Body.sender.value ?? $Request.Body.sender))
}

Expand Down

0 comments on commit 6703fb4

Please # to comment.