aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-26 19:26:57 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-26 20:01:26 +0100
commit9c2c18f3ab2cf18aeb1eb38da48f0ba553f5d9be (patch)
tree53fb76d0be4224f7af9d0379cfb43f91cf3ddb6e /server/initializers/constants.js
parente4c87ec26962e359d1c70b03ed188a3f19d6a25b (diff)
downloadPeerTube-9c2c18f3ab2cf18aeb1eb38da48f0ba553f5d9be.tar.gz
PeerTube-9c2c18f3ab2cf18aeb1eb38da48f0ba553f5d9be.tar.zst
PeerTube-9c2c18f3ab2cf18aeb1eb38da48f0ba553f5d9be.zip
Server: little sort refractoring
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index b99186e13..e33229163 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -22,9 +22,9 @@ const SEARCHABLE_COLUMNS = {
22 22
23// Sortable columns per schema 23// Sortable columns per schema
24const SORTABLE_COLUMNS = { 24const SORTABLE_COLUMNS = {
25 USERS: [ 'id', '-id', 'username', '-username', 'createdAt', '-createdAt' ], 25 USERS: [ 'id', 'username', 'createdAt' ],
26 VIDEO_ABUSES: [ 'id', '-id', 'createdAt', '-createdAt' ], 26 VIDEO_ABUSES: [ 'id', 'createdAt' ],
27 VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdAt', '-createdAt', 'views', '-views' ] 27 VIDEOS: [ 'name', 'duration', 'createdAt', 'views' ]
28} 28}
29 29
30const OAUTH_LIFETIME = { 30const OAUTH_LIFETIME = {