Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 22, 2025
1 parent f794212 commit dda4313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Function Invoke-AddMSPApp {
$InstallParams = [pscustomobject]$RMMApp.params
switch ($rmmapp.RMMName.value) {
'datto' {
Write-Host 'test'
$installcommandline = "powershell.exe -executionpolicy bypass .\install.ps1 -URL $($InstallParams.DattoURL) -GUID $($InstallParams.DattoGUID."$($tenant.customerId)")"
$UninstallCommandLine = 'powershell.exe -executionpolicy bypass .\uninstall.ps1'
}
Expand Down
4 changes: 2 additions & 2 deletions Modules/CIPPCore/Public/Invoke-RemoveQueuedApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Function Invoke-RemoveQueuedApp {
$User = $request.headers.'x-ms-client-principal'
Write-LogMessage -user $User -API $APINAME -message 'Accessed this API' -Sev 'Debug'

$ID = $request.query.id
$ID = $request.body.id
try {
$Table = Get-CippTable -tablename 'apps'
$Filter = "PartitionKey eq 'apps' and RowKey eq '$id'"
Expand All @@ -25,7 +25,7 @@ Function Invoke-RemoveQueuedApp {
} catch {
$ErrorMessage = Get-CippException -Exception $_
Write-LogMessage -user $User -API $APINAME -message "Failed to remove application queue for $ID. $($ErrorMessage.NormalizedError)" -Sev 'Error' -LogData $ErrorMessage
$body = [pscustomobject]@{'Results' = 'Failed to remove standard)' }
$body = [pscustomobject]@{'Results' = "Failed to remove item. $(Get-NormalizedError -message $_.Exception.Message)" }
}

# Associate values to output bindings by calling 'Push-OutputBinding'.
Expand Down

0 comments on commit dda4313

Please sign in to comment.