diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/sort.ts | 2 |
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' | |||
2 | import { SortType } from '../models/utils' | 2 | import { SortType } from '../models/utils' |
3 | 3 | ||
4 | const setDefaultSort = setDefaultSortFactory('-createdAt') | 4 | const setDefaultSort = setDefaultSortFactory('-createdAt') |
5 | const setDefaultVideosSort = setDefaultSortFactory('-publishedAt') | ||
5 | 6 | ||
6 | const setDefaultVideoRedundanciesSort = setDefaultSortFactory('name') | 7 | const setDefaultVideoRedundanciesSort = setDefaultSortFactory('name') |
7 | 8 | ||
@@ -33,6 +34,7 @@ function setBlacklistSort (req: express.Request, res: express.Response, next: ex | |||
33 | export { | 34 | export { |
34 | setDefaultSort, | 35 | setDefaultSort, |
35 | setDefaultSearchSort, | 36 | setDefaultSearchSort, |
37 | setDefaultVideosSort, | ||
36 | setDefaultVideoRedundanciesSort, | 38 | setDefaultVideoRedundanciesSort, |
37 | setBlacklistSort | 39 | setBlacklistSort |
38 | } | 40 | } |