aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 521d609cb..d9d7a6e42 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, start + count, sort, (err, jobs) => { 86 kue.Job.rangeByState(state, start, start + count - 1, 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)