Skip to content

Commit 2aa948b

Browse files
committed
Update Start-CIPPProcessorQueue.ps1
1 parent 0b25589 commit 2aa948b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function Start-CIPPProcessorQueue {
2121
} else {
2222
$Parameters = @{}
2323
}
24-
if (Get-Command -Name $QueueItem.FunctionName -Module CIPPCore -ErrorAction SilentlyContinue) {
24+
if (Get-Command -Name $QueueItem.ProcessorFunction -Module CIPPCore -ErrorAction SilentlyContinue) {
2525
try {
26-
Invoke-Command -ScriptBlock { & $QueueItem.FunctionName @Parameters }
26+
Invoke-Command -ScriptBlock { & $QueueItem.ProcessorFunction @Parameters }
2727
} 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)"
2929
}
3030
} else {
31-
Write-Warning "Function $($QueueItem.FunctionName) not found"
31+
Write-Warning "Function $($QueueItem.ProcessorFunction) not found"
3232
}
3333
Remove-AzDataTableEntity @QueueTable -Entity $QueueItem
3434
}

0 commit comments

Comments
 (0)