From 609bcacdb199b76b9ebb0681b4560e40c7d519d8 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 12 Jun 2024 17:16:22 -0500 Subject: [PATCH] :bug: Fix /tasks/report/queue. (#658) Signed-off-by: Jeff Ortel --- api/task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/task.go b/api/task.go index fcbfdc78b..4d974c2d8 100644 --- a/api/task.go +++ b/api/task.go @@ -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