Skip to content

Commit 56fcb84

Browse files
Update Get-CIPPCVEReport.ps1
Changed UseReportDB from string to bool Signed-off-by: DamienMatthys <damien@pcunplug.com>
1 parent 04f2bdb commit 56fcb84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/CIPPCore/Public/Get-CIPPCVEReport.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function Get-CIPPCVEReport {
1717
[Parameter(Mandatory = $true)]
1818
[string]$TenantFilter,
1919
[Parameter(Mandatory = $true)]
20-
[string]$UseReportDB
20+
[bool]$UseReportDB
2121
)
2222

2323
try {
@@ -27,7 +27,7 @@ function Get-CIPPCVEReport {
2727
$ExceptionsByCve = @{}
2828

2929
# Retrieve CVEs from database
30-
if ($UseReportDB -eq 'true'){
30+
if ($UseReportDB -eq $true){
3131
$RawCveData = Get-CIPPDbItem -TenantFilter $TenantFilter -Type 'DefenderCVEs' | Where-Object { $_.RowKey -ne 'DefenderCVEs-Count' }
3232
$AllCachedCves = $RawCveData.Data | ConvertFrom-Json
3333
} else {

0 commit comments

Comments
 (0)