diff --git a/CHANGELOG.md b/CHANGELOG.md index 085d61b..3df7724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/). + +## [2.2.1] - 2026-10-13 + +### Changed + +- removed audit messages when action is skipped. + ## [2.2.0] - 2026-08-03 ### Added diff --git a/create.ps1 b/create.ps1 index 3cf8131..eea0cd2 100644 --- a/create.ps1 +++ b/create.ps1 @@ -378,13 +378,7 @@ try { $actionMessage = "skipping updating row in table [$table] where [$($attributeName)] = [$($actionContext.Data.$attributeName)] AND [employeeID] = [$($actionContext.Data.employeeId)]" $outputContext.Data | Add-Member -NotePropertyName $attributeName -NotePropertyValue $correlatedAccount.attributeValue -Force - - $outputContext.auditlogs.Add([PSCustomObject]@{ - # Action = "" # Optional - Message = "Skipped updating row in table [$table] where [$($attributeName)] = [$($actionContext.Data.$attributeName)] AND [employeeID] = [$($actionContext.Data.employeeId)]. reason: No changes." - IsError = $false - }) - + write-information "$actionMessage" break } diff --git a/delete.ps1 b/delete.ps1 index 6aebbc8..08a06cb 100644 --- a/delete.ps1 +++ b/delete.ps1 @@ -280,12 +280,8 @@ try { "WhenDeletedAlreadySet" { $actionMessage = "skipping updating row in table [$table] where [$($attributeName)] = [$($dbCurrentRow.attributeValue)] AND [employeeID] = [$($actionContext.References.Account)]" - - $outputContext.auditlogs.Add([PSCustomObject]@{ - # Action = "" # Optional - Message = "Skipped updating row in table [$table] where [$($attributeName)] = [$($dbCurrentRow.attributeValue)] AND [employeeID] = [$($actionContext.References.Account)]. reason: [whenDeleted] is already set." - IsError = $false - }) + + write-information "$actionMessage" break } diff --git a/update.ps1 b/update.ps1 index a208605..1297ffe 100644 --- a/update.ps1 +++ b/update.ps1 @@ -389,11 +389,7 @@ try { $outputContext.PreviousData | Add-Member -NotePropertyName $attributeName -NotePropertyValue $correlatedAccount.attributeValue -Force $outputContext.Data | Add-Member -NotePropertyName $attributeName -NotePropertyValue $correlatedAccount.attributeValue -Force - $outputContext.auditlogs.Add([PSCustomObject]@{ - # Action = "" # Optional - Message = "Skipped updating row in table [$table] where [$($attributeName)] = [$($actionContext.Data.$attributeName)] AND [employeeID] = [$($actionContext.References.Account)]. reason: No changes." - IsError = $false - }) + write-information "$actionMessage" break }