Skip to content
Snippets Groups Projects
Commit e88a6842 authored by James Page's avatar James Page
Browse files

#41 - Use relation name instead of type name when logging audit events for...

#41 - Use relation name instead of type name when logging audit events for relations with embedded types.
parent b22f0d6a
Branches
Tags
1 merge request!52Resolve "Audit events should use relation name and not base type name for relations with embedded types"
......@@ -99,7 +99,7 @@ func GetChanges(original any, new any) (map[string]any, error) {
continue
}
ChildObjectChanges(changes, change.Path[len(change.Path)-2], change.Path[len(change.Path)-1], change.From, change.To)
ChildObjectChanges(changes, change.Path[len(change.Path)-3], change.Path[len(change.Path)-1], change.From, change.To)
continue
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment