aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-09 16:13:03 +0100
committerChocobozzz <me@florianbigard.com>2020-11-09 16:13:12 +0100
commit439d68e53766d48e7316aab6b6f78cd555247f6e (patch)
tree967c3c9b6038ab76835c5a3786c25479c25db166 /server/controllers/api
parent4872e9468ed99092a36c3cd3d5f5b11019182667 (diff)
downloadPeerTube-439d68e53766d48e7316aab6b6f78cd555247f6e.tar.gz
PeerTube-439d68e53766d48e7316aab6b6f78cd555247f6e.tar.zst
PeerTube-439d68e53766d48e7316aab6b6f78cd555247f6e.zip
Fix jobs pagination
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/jobs.ts2
1 files changed, 1 insertions, 1 deletions
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) {
48 asc, 48 asc,
49 jobType 49 jobType
50 }) 50 })
51 const total = await JobQueue.Instance.count(state) 51 const total = await JobQueue.Instance.count(state, jobType)
52 52
53 const result: ResultList<Job> = { 53 const result: ResultList<Job> = {
54 total, 54 total,