@@ -58,7 +58,7 @@ function Push-SchedulerCIPPNotifications {
5858 $Subject = " $ ( $Tenant ) : Standards are out of sync for $tenant "
5959 $HTMLContent = New-CIPPAlertTemplate - Data $Data - Format ' html' - InputObject ' standards'
6060 Send-CIPPAlert - Type ' email' - Title $Subject - HTMLContent $HTMLContent.htmlcontent - TenantFilter $tenant - APIName ' Alerts'
61- $updateStandards = $CurrentStandardsLogs | ForEach-Object { $_.SentAsAlert = $true ; $_ }
61+ $updateStandards = $CurrentStandardsLogs | ForEach-Object { $_.sentAsAlert = $true ; $_ }
6262 if ($updateStandards ) { Add-CIPPAzDataTableEntity @StandardsTable - Entity $updateStandards - Force }
6363 }
6464 }
@@ -83,7 +83,7 @@ function Push-SchedulerCIPPNotifications {
8383 $JSONContent = New-CIPPAlertTemplate - Data $Data - Format ' json' - InputObject ' table'
8484 $CurrentStandardsLogs | ConvertTo-Json - Compress
8585 Send-CIPPAlert - Type ' webhook' - JSONContent $JSONContent - TenantFilter $Tenant - APIName ' Alerts'
86- $updateStandards = $CurrentStandardsLogs | ForEach-Object { $_.SentAsAlert = $true ; $_ }
86+ $updateStandards = $CurrentStandardsLogs | ForEach-Object { $_.sentAsAlert = $true ; $_ }
8787 if ($updateStandards ) { Add-CIPPAzDataTableEntity @StandardsTable - Entity $updateStandards - Force }
8888 }
8989
@@ -108,7 +108,7 @@ function Push-SchedulerCIPPNotifications {
108108 $Subject = " $ ( $standardsTenant ) : Standards are out of sync for $standardsTenant "
109109 $HTMLContent = New-CIPPAlertTemplate - Data $Data - Format ' html' - InputObject ' standards'
110110 Send-CIPPAlert - Type ' psa' - Title $Subject - HTMLContent $HTMLContent.htmlcontent - TenantFilter $standardsTenant - APIName ' Alerts'
111- $updateStandards = $CurrentStandardsLogs | ForEach-Object { $_.SentAsAlert = $true ; $_ }
111+ $updateStandards = $CurrentStandardsLogs | ForEach-Object { $_.sentAsAlert = $true ; $_ }
112112 if ($updateStandards ) { Add-CIPPAzDataTableEntity @StandardsTable - Entity $updateStandards - Force }
113113 }
114114 } catch {
0 commit comments