Skip to content

Commit e804ef4

Browse files
authored
Merge pull request #978 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents be2c84c + 0fd3315 commit e804ef4

3 files changed

Lines changed: 10 additions & 74 deletions

File tree

Config/CIPPTimers.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717
"RunOnProcessor": true,
1818
"PreferredProcessor": "usertasks"
1919
},
20-
{
21-
"Id": "168decf3-7ddd-471e-ab46-8b40be0f18ae",
22-
"Command": "Start-CIPPProcessorQueue",
23-
"Description": "Timer to handle user initiated tasks",
24-
"Cron": "0 */15 * * * *",
25-
"Priority": 1,
26-
"RunOnProcessor": true
27-
},
2820
{
2921
"Id": "44a40668-ed71-403c-8c26-b32e320086ad",
3022
"Command": "Start-AuditLogOrchestrator",

Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-CIPPProcessorQueue.ps1

Lines changed: 0 additions & 59 deletions
This file was deleted.

Modules/CIPPCore/Public/Webhooks/Invoke-CIPPWebhookProcessing.ps1

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Invoke-CippWebhookProcessing {
7979
"Completed BEC Remediate for $Username"
8080
Write-LogMessage -API 'BECRemediate' -tenant $tenantfilter -message "Executed Remediation for $Username" -sev 'Info'
8181
}
82-
'cippcommand' {
82+
<#'cippcommand' {
8383
$CommandSplat = @{}
8484
$action.parameters.psobject.properties | ForEach-Object { $CommandSplat.Add($_.name, $_.value) }
8585
if ($CommandSplat['userid']) { $CommandSplat['userid'] = $Data.UserId }
@@ -88,6 +88,9 @@ function Invoke-CippWebhookProcessing {
8888
if ($CommandSplat['user']) { $CommandSplat['user'] = $Data.UserId }
8989
if ($CommandSplat['username']) { $CommandSplat['username'] = $Data.UserId }
9090
& $action.command.value @CommandSplat
91+
}#>
92+
default {
93+
Write-Host "Unknown action: $action"
9194
}
9295
}
9396
}
@@ -146,12 +149,12 @@ function Invoke-CippWebhookProcessing {
146149
}
147150
'generateWebhook' {
148151
$CippAlert = @{
149-
Type = 'webhook'
150-
Title = $GenerateJSON.Title
151-
JSONContent = $JsonContent
152-
TenantFilter = $TenantFilter
153-
APIName = 'Audit Log Alerts'
154-
SchemaSource = 'Audit Log Alert'
152+
Type = 'webhook'
153+
Title = $GenerateJSON.Title
154+
JSONContent = $JsonContent
155+
TenantFilter = $TenantFilter
156+
APIName = 'Audit Log Alerts'
157+
SchemaSource = 'Audit Log Alert'
155158
InvokingCommand = 'Start-AuditLogProcessingOrchestrator'
156159
}
157160
Write-Host 'Sending Webhook Content'

0 commit comments

Comments
 (0)