We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04f2bdb commit 56fcb84Copy full SHA for 56fcb84
1 file changed
Modules/CIPPCore/Public/Get-CIPPCVEReport.ps1
@@ -17,7 +17,7 @@ function Get-CIPPCVEReport {
17
[Parameter(Mandatory = $true)]
18
[string]$TenantFilter,
19
20
- [string]$UseReportDB
+ [bool]$UseReportDB
21
)
22
23
try {
@@ -27,7 +27,7 @@ function Get-CIPPCVEReport {
27
$ExceptionsByCve = @{}
28
29
# Retrieve CVEs from database
30
- if ($UseReportDB -eq 'true'){
+ if ($UseReportDB -eq $true){
31
$RawCveData = Get-CIPPDbItem -TenantFilter $TenantFilter -Type 'DefenderCVEs' | Where-Object { $_.RowKey -ne 'DefenderCVEs-Count' }
32
$AllCachedCves = $RawCveData.Data | ConvertFrom-Json
33
} else {
0 commit comments