Skip to content

Commit bd7b7fa

Browse files
authored
Update delete.ps1 (#24)
1 parent eb480d5 commit bd7b7fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

delete.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ try {
203203

204204
Write-Verbose "Error at Line [$($ex.InvocationInfo.ScriptLineNumber)]: $($ex.InvocationInfo.Line). Error: $($errorMessage.VerboseErrorMessage)"
205205

206-
if ($errorMessage.AuditErrorMessage -Like "No AFAS employee found AFAS employee*") {
206+
if ($errorMessage.AuditErrorMessage -Like "No AFAS employee found*") {
207207
$outputContext.AuditLogs.Add([PSCustomObject]@{
208208
Action = "DeleteAccount"
209-
Message = "No AFAS employee found AFAS employee where [$($correlationProperty)] = [$($correlationValue)]. Possibly deleted."
209+
Message = "No AFAS employee found where [$($correlationProperty)] = [$($correlationValue)]. Possibly deleted."
210210
IsError = $false
211211
})
212212
}
@@ -360,4 +360,4 @@ finally {
360360
$outputContext.AccountReference = $aRef
361361
$outputContext.Data = $exportData
362362
$outputContext.PreviousData = $previousAccount
363-
}
363+
}

0 commit comments

Comments
 (0)