Skip to content
Snippets Groups Projects

Audit changes move to utils

Merged Christel Loftus requested to merge audit_changes_move_to_utils into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -41,8 +41,8 @@ func VerifyAuditEvents(original interface{}, new interface{}) error {
@@ -41,8 +41,8 @@ func VerifyAuditEvents(original interface{}, new interface{}) error {
func GetChanges(original interface{}, new interface{}) (map[string]interface{}, error) {
func GetChanges(original interface{}, new interface{}) (map[string]interface{}, error) {
// Clean audit events
// Clean audit events
cleanStruct(original)
original = cleanStruct(original)
cleanStruct(new)
new = cleanStruct(new)
changes := map[string]interface{}{}
changes := map[string]interface{}{}
changelog, err := diff.Diff(original, new)
changelog, err := diff.Diff(original, new)
Loading