Fix jobs pagination
This commit is contained in:
parent
4872e9468e
commit
439d68e537
|
@ -48,7 +48,7 @@ async function listJobs (req: express.Request, res: express.Response) {
|
||||||
asc,
|
asc,
|
||||||
jobType
|
jobType
|
||||||
})
|
})
|
||||||
const total = await JobQueue.Instance.count(state)
|
const total = await JobQueue.Instance.count(state, jobType)
|
||||||
|
|
||||||
const result: ResultList<Job> = {
|
const result: ResultList<Job> = {
|
||||||
total,
|
total,
|
||||||
|
|
Loading…
Reference in New Issue