add task completed

This commit is contained in:
2025-11-28 21:11:33 -05:00
parent 4305b12488
commit cdeaef67ac
2 changed files with 18 additions and 0 deletions

View File

@@ -1208,6 +1208,13 @@ function Send-JSON {
}
#endregion HTTP responder helpers
function Invoke-TasksCompleted {
param($Context)
Write-LogHybrid "All UI-selected tasks processed" Info UI -LogToEvent
Send-Text $Context "Tasks completion acknowledged."
}
#region Datto handlers
function Invoke-FetchSites {
param($Context)
@@ -1732,6 +1739,12 @@ function Install-DattoRMM {
return
}
# ---- Tasks completed notification ----
if ($Context.Request.HttpMethod -eq 'POST' -and $path -eq 'tasksCompleted') {
Invoke-TasksCompleted $Context
return
}
# ---- Fetch Sites endpoint ----
if ($Context.Request.HttpMethod -eq 'POST' -and $path -eq 'getpw') {
Invoke-FetchSites $Context