Skip to content

Commit

Permalink
fix: multiple sboms for a root package
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanb authored and mrizzi committed Nov 29, 2023
1 parent 28d857b commit dd407e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/assembler/backends/ent/backend/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ func (b *EntBackend) FindDependentProduct(ctx context.Context, purl string, offs
})
})
}).
Only(ctx)
Order(billofmaterials.ByID(), ent.Desc()).
First(ctx)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit dd407e4

Please sign in to comment.