Skip to content

Commit

Permalink
🐛 Fix /tasks/report/queue. (#658)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel committed Jun 12, 2024
1 parent 380b4da commit 609bcac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ func (h TaskHandler) Queued(ctx *gin.Context) {
State string
Count int
}
db = db.Select("State", "COUNT(*)")
db = db.Select("State", "COUNT(*) Count")
db = db.Where(
"State", []string{
tasking.Ready,
tasking.Postponed,
tasking.Pending,
tasking.Ready,
tasking.Running,
})
db = db.Group("State")
var list []M
Expand Down

0 comments on commit 609bcac

Please sign in to comment.