aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/checker.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-16 22:31:45 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-16 22:31:45 +0200
commit5c39adb7313e0696aabb4b71196ab7b0b378c359 (patch)
treeac44b67890509338b984f8cbf11660dc77cdd0fd /server/initializers/checker.js
parent089ff2f2046fdbaf9531726eea1f8c6726ebf0c0 (diff)
downloadPeerTube-5c39adb7313e0696aabb4b71196ab7b0b378c359.tar.gz
PeerTube-5c39adb7313e0696aabb4b71196ab7b0b378c359.tar.zst
PeerTube-5c39adb7313e0696aabb4b71196ab7b0b378c359.zip
Server: add user list sort/pagination
Diffstat (limited to 'server/initializers/checker.js')
-rw-r--r--server/initializers/checker.js2
1 files changed, 1 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
41function usersExist (callback) { 41function 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)