From 0b81075646d017d5e20d11dc99b992e478a94a86 Mon Sep 17 00:00:00 2001 From: jano3 <jano@bob.co.za> Date: Tue, 2 Jul 2024 10:55:41 +0200 Subject: [PATCH] Fix bug preventing audit changes from showing --- audit/audit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audit/audit.go b/audit/audit.go index 20e2937..24b6afd 100644 --- a/audit/audit.go +++ b/audit/audit.go @@ -242,8 +242,8 @@ func CheckToFormatForAuditEvent(changes map[string]any, original any, new any, f "original": fmt.Sprintf("%#v", originalFieldValue), "new": fmt.Sprintf("%#v", newFieldValue), }, errors.Error("Failed to format for audit event")) + didInsert = false } - didInsert = false }() doGroupSlice := doGroupSliceForAuditEvent(originalStructField) -- GitLab