Skip to content

Commit e43cc50

Browse files
committed
temp fix for standards reports
1 parent 838f3a4 commit e43cc50

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-ListStandardsCompare.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using namespace System.Net
22

3-
Function Invoke-ListStandardsCompare {
3+
function Invoke-ListStandardsCompare {
44
<#
55
.FUNCTIONALITY
66
Entrypoint
@@ -10,7 +10,13 @@ Function Invoke-ListStandardsCompare {
1010
[CmdletBinding()]
1111
param($Request, $TriggerMetadata)
1212

13+
1314
$Table = Get-CIPPTable -TableName 'CippStandardsReports'
15+
$TenantFilter = $Request.Query.tenantFilter
16+
if ($TenantFilter) {
17+
$Table.Filter = "RowKey eq '{0}'" -f $TenantFilter
18+
}
19+
1420
$Results = Get-CIPPAzDataTableEntity @Table
1521

1622
#in the results we have objects starting with "standards." All these have to be converted from JSON. Do not do this is its a boolean

0 commit comments

Comments
 (0)