Skip to content

Commit

Permalink
Merge pull request #65 from atlanhq/FT-775
Browse files Browse the repository at this point in the history
FT-775 : Bug: Use `Terms` instead of `TermQuery` in case of multiple assets
  • Loading branch information
0xquark authored Nov 26, 2024
2 parents a9d1440 + 9957821 commit a64025a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atlan/assets/fluent_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ func (fs *FluentSearch) AssetType(of string) *FluentSearch {

// AssetTypes Returns a query that will only match assets that are one of the types provided.
func (fs *FluentSearch) AssetTypes(oneOf []string) *FluentSearch {
assetTypesCondition := &model.TermQuery{
Field: TYPE_NAME,
Value: oneOf,
assetTypesCondition := &model.Terms{
Field: TYPE_NAME,
Values: oneOf,
}
fs.Wheres = append(fs.Wheres, assetTypesCondition)
return fs
Expand Down

0 comments on commit a64025a

Please sign in to comment.