Skip to content

Commit f0eef80

Browse files
committed
add value/lastrefresh to each standard
1 parent ef47345 commit f0eef80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ function Invoke-ListStandardsCompare {
6161
if (-not $TenantStandards.ContainsKey($Tenant)) {
6262
$TenantStandards[$Tenant] = @{}
6363
}
64-
$TenantStandards[$Tenant][$FieldName] = $FieldValue
64+
$TenantStandards[$Tenant][$FieldName] = @{
65+
Value = $FieldValue
66+
LastRefresh = $Standard.TimeStamp.ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ')
67+
}
6568
}
6669

6770
foreach ($Tenant in $TenantStandards.Keys) {

0 commit comments

Comments
 (0)