From e87ce6969a3158ff06582e00c0a9e11155a9873b Mon Sep 17 00:00:00 2001 From: tigattack <10629864+tigattack@users.noreply.github.com> Date: Thu, 14 Aug 2025 10:12:58 +0100 Subject: [PATCH] fix(notifsender): increase JSON conversion depth Also now compresses the JSON rather than sending a formatted JSON object. --- resources/NotificationSender.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/NotificationSender.psm1 b/resources/NotificationSender.psm1 index 984c479..337347f 100644 --- a/resources/NotificationSender.psm1 +++ b/resources/NotificationSender.psm1 @@ -34,7 +34,7 @@ function Send-Payload { } if ($Method -eq 'Post' -and $Payload) { - $postParams.Body = $Payload | ConvertTo-Json -Depth 10 + $postParams.Body = $Payload | ConvertTo-Json -Depth 100 -Compress $postParams.ContentType = 'application/json' }