asc,
jobType
})
- const total = await JobQueue.Instance.count(state)
+ const total = await JobQueue.Instance.count(state, jobType)
- const result: ResultList<any> = {
+ const result: ResultList<Job> = {
total,
data: jobs.map(j => formatJob(j, state))
}