projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
649fb08
)
Fix job count api
author
Chocobozzz
<me@florianbigard.com>
Wed, 7 Feb 2018 11:47:56 +0000
(12:47 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 8 Feb 2018 08:52:57 +0000
(09:52 +0100)
server/lib/job-queue/job-queue.ts
patch
|
blob
|
history
diff --git
a/server/lib/job-queue/job-queue.ts
b/server/lib/job-queue/job-queue.ts
index 521d609cbdfbbf0448912b6bbc8ce8e072a2eb75..d9d7a6e42770c25b0746a7ffa796a6c20e6ff6ff 100644
(file)
--- 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<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)