Add missing filters to crossjoinquery

This commit is contained in:
Christoph Kluge 2023-12-11 13:55:56 +01:00
parent 1185737eaa
commit ee4097a2dd

View File

@ -578,10 +578,15 @@ func (r *JobRepository) jobsMetricStatisticsHistogram(
)
crossJoinQuery, cjqerr := SecurityCheck(ctx, crossJoinQuery)
if cjqerr != nil {
return nil, cjqerr
}
for _, f := range filters {
crossJoinQuery = BuildWhereClause(f, crossJoinQuery)
}
crossJoinQuerySql, _, sqlerr := crossJoinQuery.ToSql()
if sqlerr != nil {
return nil, sqlerr