mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-15 12:27:30 +01:00
Inline jobstate literal in query
Entire-Checkpoint: 35f06df74b51
This commit is contained in:
@@ -113,7 +113,7 @@ func (r *JobRepository) buildCountQuery(
|
||||
|
||||
switch kind {
|
||||
case "running":
|
||||
query = query.Where("job.job_state = ?", "running")
|
||||
query = query.Where("job.job_state = 'running'")
|
||||
case "short":
|
||||
query = query.Where("job.duration < ?", config.Keys.ShortRunningJobsDuration)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user