From: Chocobozzz Date: Wed, 7 Feb 2018 09:32:14 +0000 (+0100) Subject: Fix job queue api X-Git-Tag: v0.0.21-alpha~11 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fafc13fff164778161bb6bb0d3019e2b7a238243;hp=83452a1f235074ba635cdc24ae527f1f06b066c1;p=github%2FChocobozzz%2FPeerTube.git Fix job queue api --- diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts index e8f6c3620..521d609cb 100644 --- a/server/lib/job-queue/job-queue.ts +++ b/server/lib/job-queue/job-queue.ts @@ -83,7 +83,7 @@ class JobQueue { listForApi (state: JobState, start: number, count: number, sort: string) { return new Promise((res, rej) => { - kue.Job.rangeByState(state, start, count, sort, (err, jobs) => { + kue.Job.rangeByState(state, start, start + count, sort, (err, jobs) => { if (err) return rej(err) return res(jobs)