aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/jobs.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/jobs.ts b/server/controllers/api/jobs.ts
index c19596dde..1fa662349 100644
--- a/server/controllers/api/jobs.ts
+++ b/server/controllers/api/jobs.ts
@@ -36,8 +36,8 @@ export {
36 36
37// --------------------------------------------------------------------------- 37// ---------------------------------------------------------------------------
38 38
39async function listJobs (req: express.Request, res: express.Response, next: express.NextFunction) { 39async function listJobs (req: express.Request, res: express.Response) {
40 const state: JobState = req.params.state 40 const state = req.params.state as JobState
41 const asc = req.query.sort === 'createdAt' 41 const asc = req.query.sort === 'createdAt'
42 42
43 const jobs = await JobQueue.Instance.listForApi(state, req.query.start, req.query.count, asc) 43 const jobs = await JobQueue.Instance.listForApi(state, req.query.start, req.query.count, asc)