File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Modules/CIPPCore/Public/Entrypoints/Timer Functions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ function Start-CIPPProcessorQueue {
21
21
} else {
22
22
$Parameters = @ {}
23
23
}
24
- if (Get-Command - Name $QueueItem.FunctionName - Module CIPPCore - ErrorAction SilentlyContinue) {
24
+ if (Get-Command - Name $QueueItem.ProcessorFunction - Module CIPPCore - ErrorAction SilentlyContinue) {
25
25
try {
26
- Invoke-Command - ScriptBlock { & $QueueItem.FunctionName @Parameters }
26
+ Invoke-Command - ScriptBlock { & $QueueItem.ProcessorFunction @Parameters }
27
27
} catch {
28
- Write-Warning " Failed to run function $ ( $QueueItem.FunctionName ) . Error: $ ( $_.Exception.Message ) "
28
+ Write-Warning " Failed to run function $ ( $QueueItem.ProcessorFunction ) . Error: $ ( $_.Exception.Message ) "
29
29
}
30
30
} else {
31
- Write-Warning " Function $ ( $QueueItem.FunctionName ) not found"
31
+ Write-Warning " Function $ ( $QueueItem.ProcessorFunction ) not found"
32
32
}
33
33
Remove-AzDataTableEntity @QueueTable - Entity $QueueItem
34
34
}
You can’t perform that action at this time.
0 commit comments