Skip to content

Commit

Permalink
fixed: tested function that should have never has passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Mercadal committed Sep 18, 2023
1 parent 88f6ff1 commit f0f13d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/importing/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@ func sanitize(obj elemental.AttributeSpecifiable, manager elemental.ModelManager
// If the type is a ref, we recursively sanitize the nested object.
if spec.Type == "ref" {

fmt.Printf("%#v\n\n", v)
m, err := sanitize(v.(elemental.AttributeSpecifiable), manager)
vv := manager.IdentifiableFromString(spec.SubType)
if err := mapstructure.Decode(v, vv); err != nil {
return nil, err
}

m, err := sanitize(vv.(elemental.AttributeSpecifiable), manager)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f0f13d6

Please sign in to comment.