Fix job queue api

pull/281/head
Chocobozzz 2018-02-07 10:32:14 +01:00
parent 83452a1f23
commit fafc13fff1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class JobQueue {
listForApi (state: JobState, start: number, count: number, sort: string) {
return new Promise<kue.Job[]>((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)