diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker.js | 2 | ||||
-rw-r--r-- | server/initializers/constants.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/checker.js b/server/initializers/checker.js index 871d3cac2..4b6997547 100644 --- a/server/initializers/checker.js +++ b/server/initializers/checker.js | |||
@@ -39,7 +39,7 @@ function clientsExist (callback) { | |||
39 | } | 39 | } |
40 | 40 | ||
41 | function usersExist (callback) { | 41 | function usersExist (callback) { |
42 | User.count(function (err, totalUsers) { | 42 | User.countTotal(function (err, totalUsers) { |
43 | if (err) return callback(err) | 43 | if (err) return callback(err) |
44 | 44 | ||
45 | return callback(null, totalUsers !== 0) | 45 | return callback(null, totalUsers !== 0) |
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 416356400..cd2e0cfb9 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -63,6 +63,7 @@ const SEEDS_IN_PARALLEL = 3 | |||
63 | 63 | ||
64 | // Sortable columns per schema | 64 | // Sortable columns per schema |
65 | const SORTABLE_COLUMNS = { | 65 | const SORTABLE_COLUMNS = { |
66 | USERS: [ 'username', '-username', 'createdDate', '-createdDate' ], | ||
66 | VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] | 67 | VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] |
67 | } | 68 | } |
68 | 69 | ||