mirror of https://github.com/Chocobozzz/PeerTube
Fix job count api
parent
649fb0829a
commit
18cfac83a1
|
@ -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, start + count, sort, (err, jobs) => {
|
||||
kue.Job.rangeByState(state, start, start + count - 1, sort, (err, jobs) => {
|
||||
if (err) return rej(err)
|
||||
|
||||
return res(jobs)
|
||||
|
|
Loading…
Reference in New Issue