diff --git a/TGBeta.ps1 b/TGBeta.ps1 index 8b9c370..a8dba20 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -1456,7 +1456,7 @@ try { $password = $data.password Get-N8nWebhookData -AuthHeaderValue $password - $sites = Fetch-Sites -ApiUrl $ApiUrl -ApiKey $ApiKey -ApiSecretKey $ApiSecretKey -FetchSitesOnly + $sites = Install-DattoRMM-Helper -ApiUrl $ApiUrl -ApiKey $ApiKey -ApiSecretKey $ApiSecretKey -FetchSitesOnly if (-not $sites) { Write-Host "No sites returned. Please check the API." -ForegroundColor Red $response.StatusCode = 500