aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/sort.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/sort.ts b/server/middlewares/sort.ts
index fcbb2902c..609046a46 100644
--- a/server/middlewares/sort.ts
+++ b/server/middlewares/sort.ts
@@ -2,6 +2,7 @@ import * as express from 'express'
2import { SortType } from '../models/utils' 2import { SortType } from '../models/utils'
3 3
4const setDefaultSort = setDefaultSortFactory('-createdAt') 4const setDefaultSort = setDefaultSortFactory('-createdAt')
5const setDefaultVideosSort = setDefaultSortFactory('-publishedAt')
5 6
6const setDefaultVideoRedundanciesSort = setDefaultSortFactory('name') 7const setDefaultVideoRedundanciesSort = setDefaultSortFactory('name')
7 8
@@ -33,6 +34,7 @@ function setBlacklistSort (req: express.Request, res: express.Response, next: ex
33export { 34export {
34 setDefaultSort, 35 setDefaultSort,
35 setDefaultSearchSort, 36 setDefaultSearchSort,
37 setDefaultVideosSort,
36 setDefaultVideoRedundanciesSort, 38 setDefaultVideoRedundanciesSort,
37 setBlacklistSort 39 setBlacklistSort
38} 40}