Skip to content

Commit da6880c

Browse files
committed
fix webhook alerts
1 parent 53f6dfe commit da6880c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-SchedulerCIPPNotifications.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function Push-SchedulerCIPPNotifications {
106106
try {
107107
Write-Information $($config | ConvertTo-Json)
108108
Write-Information $config.webhook
109-
if ($Config.webhook -ne '' -and $null) {
109+
if (![string]::IsNullOrEmpty($config.webhook)) {
110110
if ($Currentlog) {
111111
$JSONContent = $Currentlog | ConvertTo-Json -Compress
112112
Send-CIPPAlert -Type 'webhook' -JSONContent $JSONContent -TenantFilter $Tenant -APIName 'Alerts'

0 commit comments

Comments
 (0)