Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix jobs pagination

Chocobozzz439d68e53766
diff --git a/server/controllers/api/jobs.ts b/server/controllers/api/jobs.ts
index 13fc04d187..ed6c945335 100644
--- a/server/controllers/api/jobs.ts
+++ b/server/controllers/api/jobs.ts
@@ -48,7 +48,7 @@ async function listJobs (req: express.Request, res: express.Response) {
asc,
jobType
})
- const total = await JobQueue.Instance.count(state)
+ const total = await JobQueue.Instance.count(state, jobType)
const result: ResultList<Job> = {
total,