aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/job-queue.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/job-queue/job-queue.ts')
-rw-r--r--server/lib/job-queue/job-queue.ts2
1 files changed, 1 insertions, 1 deletions
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 {
83 83
84 listForApi (state: JobState, start: number, count: number, sort: string) { 84 listForApi (state: JobState, start: number, count: number, sort: string) {
85 return new Promise<kue.Job[]>((res, rej) => { 85 return new Promise<kue.Job[]>((res, rej) => {
86 kue.Job.rangeByState(state, start, count, sort, (err, jobs) => { 86 kue.Job.rangeByState(state, start, start + count, sort, (err, jobs) => {
87 if (err) return rej(err) 87 if (err) return rej(err)
88 88
89 return res(jobs) 89 return res(jobs)