mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Add missing filters to crossjoinquery
This commit is contained in:
parent
1185737eaa
commit
ee4097a2dd
@ -578,10 +578,15 @@ func (r *JobRepository) jobsMetricStatisticsHistogram(
|
|||||||
)
|
)
|
||||||
|
|
||||||
crossJoinQuery, cjqerr := SecurityCheck(ctx, crossJoinQuery)
|
crossJoinQuery, cjqerr := SecurityCheck(ctx, crossJoinQuery)
|
||||||
|
|
||||||
if cjqerr != nil {
|
if cjqerr != nil {
|
||||||
return nil, cjqerr
|
return nil, cjqerr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, f := range filters {
|
||||||
|
crossJoinQuery = BuildWhereClause(f, crossJoinQuery)
|
||||||
|
}
|
||||||
|
|
||||||
crossJoinQuerySql, _, sqlerr := crossJoinQuery.ToSql()
|
crossJoinQuerySql, _, sqlerr := crossJoinQuery.ToSql()
|
||||||
if sqlerr != nil {
|
if sqlerr != nil {
|
||||||
return nil, sqlerr
|
return nil, sqlerr
|
||||||
|
Loading…
Reference in New Issue
Block a user