diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-19 09:10:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-20 09:25:44 +0200 |
commit | 9593a78ae1368a9ad8bb11044fce6fde2892701a (patch) | |
tree | 6a048d32cdcfdfc3c1ea6c02c4a86d8861bac1e7 /server/initializers | |
parent | 9c58375c082dc044f683487e81c0a80a10b3a087 (diff) | |
download | PeerTube-9593a78ae1368a9ad8bb11044fce6fde2892701a.tar.gz PeerTube-9593a78ae1368a9ad8bb11044fce6fde2892701a.tar.zst PeerTube-9593a78ae1368a9ad8bb11044fce6fde2892701a.zip |
Refactor sort middlewares
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 9896e1efb..029984559 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -69,8 +69,8 @@ const SORTABLE_COLUMNS = { | |||
69 | 69 | ||
70 | VIDEO_RATES: [ 'createdAt' ], | 70 | VIDEO_RATES: [ 'createdAt' ], |
71 | BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ], | 71 | BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ], |
72 | FOLLOWERS: [ 'createdAt', 'state', 'score' ], | 72 | INSTANCE_FOLLOWERS: [ 'createdAt', 'state', 'score' ], |
73 | FOLLOWING: [ 'createdAt', 'redundancyAllowed', 'state' ], | 73 | INSTANCE_FOLLOWING: [ 'createdAt', 'redundancyAllowed', 'state' ], |
74 | 74 | ||
75 | VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'trending', 'hot', 'best' ], | 75 | VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'trending', 'hot', 'best' ], |
76 | 76 | ||