mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 01:25:06 +01:00 
			
		
		
		
	Add missing filters to crossjoinquery
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user