diff --git a/internal/eventstore/repository/sql/query.go b/internal/eventstore/repository/sql/query.go index 6cd0672e46..145f168d52 100644 --- a/internal/eventstore/repository/sql/query.go +++ b/internal/eventstore/repository/sql/query.go @@ -221,7 +221,7 @@ func eventsScanner(useV1 bool) func(scanner scan, dest interface{}) (err error) } func prepareConditions(criteria querier, query *repository.SearchQuery, useV1 bool) (string, []any) { - clauses, args := prepareQuery(criteria, useV1, query.InstanceID, query.ExcludedInstances) + clauses, args := prepareQuery(criteria, useV1, query.InstanceID, query.InstanceIDs, query.ExcludedInstances) if clauses != "" && len(query.SubQueries) > 0 { clauses += " AND " }