aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/jobs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/jobs.ts')
-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 d9d6030a4..180a3fca6 100644
--- a/server/controllers/api/jobs.ts
+++ b/server/controllers/api/jobs.ts
@@ -1,7 +1,7 @@
1import * as express from 'express' 1import * as express from 'express'
2import { UserRight } from '../../../shared/models/users' 2import { UserRight } from '../../../shared/models/users'
3import { getFormattedObjects } from '../../helpers/utils' 3import { getFormattedObjects } from '../../helpers/utils'
4import { asyncMiddleware, authenticate, ensureUserHasRight, jobsSortValidator, setJobsSort, setPagination } from '../../middlewares' 4import { asyncMiddleware, authenticate, ensureUserHasRight, jobsSortValidator, setDefaultSort, setPagination } from '../../middlewares'
5import { paginationValidator } from '../../middlewares/validators' 5import { paginationValidator } from '../../middlewares/validators'
6import { JobModel } from '../../models/job/job' 6import { JobModel } from '../../models/job/job'
7 7
@@ -12,7 +12,7 @@ jobsRouter.get('/',
12 ensureUserHasRight(UserRight.MANAGE_JOBS), 12 ensureUserHasRight(UserRight.MANAGE_JOBS),
13 paginationValidator, 13 paginationValidator,
14 jobsSortValidator, 14 jobsSortValidator,
15 setJobsSort, 15 setDefaultSort,
16 setPagination, 16 setPagination,
17 asyncMiddleware(listJobs) 17 asyncMiddleware(listJobs)
18) 18)