From 439d68e53766d48e7316aab6b6f78cd555247f6e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 9 Nov 2020 16:13:03 +0100 Subject: Fix jobs pagination --- server/controllers/api/jobs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/jobs.ts b/server/controllers/api/jobs.ts index 13fc04d18..ed6c94533 100644 --- a/server/controllers/api/jobs.ts +++ b/server/controllers/api/jobs.ts @@ -48,7 +48,7 @@ async function listJobs (req: express.Request, res: express.Response) { asc, jobType }) - const total = await JobQueue.Instance.count(state) + const total = await JobQueue.Instance.count(state, jobType) const result: ResultList = { total, -- cgit v1.2.3