From 75d01d273873a7f416cdcc0de28a9a9efac44ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Dobrovoljc?= Date: Tue, 6 Feb 2024 13:16:12 +0100 Subject: [PATCH] Fix ListJobs response --- handlers/jobs.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/handlers/jobs.go b/handlers/jobs.go index 972be08..89bcb88 100644 --- a/handlers/jobs.go +++ b/handlers/jobs.go @@ -199,10 +199,7 @@ func (j *Jobs) ListJobs() gin.HandlerFunc { return } - ctx.JSON(http.StatusOK, map[string]interface { - }{ - "jobs": jobs, - }) + ctx.JSON(http.StatusOK, jobs) } }