aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/checker.js b/server/initializers/checker.js
index 2753604dc..6471bb4f1 100644
--- a/server/initializers/checker.js
+++ b/server/initializers/checker.js
@@ -42,10 +42,10 @@ function checkMissedConfig () {
42} 42}
43 43
44function clientsExist (callback) { 44function clientsExist (callback) {
45 db.OAuthClient.list(function (err, clients) { 45 db.OAuthClient.countTotal(function (err, totalClients) {
46 if (err) return callback(err) 46 if (err) return callback(err)
47 47
48 return callback(null, clients.length !== 0) 48 return callback(null, totalClients !== 0)
49 }) 49 })
50} 50}
51 51