Skip to content

Commit 15689dd

Browse files
committed
fix wrong data type used for list
1 parent 7986be7 commit 15689dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Alerts/Get-CIPPAlertNewAppApproval.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Get-CIPPAlertNewAppApproval {
1515
try {
1616
$Approvals = New-GraphGetRequest -Uri "https://graph.microsoft.com/beta/identityGovernance/appConsent/appConsentRequests?`$filter=userConsentRequests/any (u:u/status eq 'InProgress')" -tenantid $TenantFilter
1717
if ($Approvals.count -gt 0) {
18-
$AlertData = [System.Collections.Generic.List[string]]::new()
18+
$AlertData = [System.Collections.Generic.List[PSCustomObject]]::new()
1919
foreach ($App in $Approvals) {
2020
$userConsentRequests = New-GraphGetRequest -Uri "https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests/$($App.id)/userConsentRequests" -tenantid $TenantFilter
2121
$userConsentRequests | ForEach-Object {

0 commit comments

Comments
 (0)