Skip to content

Commit 7ec4e3f

Browse files
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into dev
2 parents ecd814b + 00b2649 commit 7ec4e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardRetentionPolicy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function Invoke-CIPPStandardRetentionPolicyTag {
1919
$StateIsCorrect = ($CurrentState.Name -eq $PolicyName) -and
2020
($CurrentState.RetentionEnabled -eq $true) -and
2121
($CurrentState.RetentionAction -eq 'PermanentlyDelete') -and
22-
($CurrentState.AgeLimitForRetention -eq $Settings.AgeLimitForRetention) -and
22+
($CurrentState.AgeLimitForRetention -eq ([timespan]::FromDays($Settings.AgeLimitForRetention))) -and
2323
($CurrentState.Type -eq 'DeletedItems') -and
2424
($PolicyState.RetentionPolicyTagLinks -contains $PolicyName)
2525

0 commit comments

Comments
 (0)