diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 10:33:36 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 10:56:07 +0100 |
commit | 4712081f2a5f48749cf125d729e78b926ab28d6d (patch) | |
tree | b0f2f380f6fe5403fb89fb5cfdbe9deafea1c889 /server/initializers/checker.js | |
parent | 319d072e8eb7266cd8d33e0bb2fb5ebe76c487d1 (diff) | |
download | PeerTube-4712081f2a5f48749cf125d729e78b926ab28d6d.tar.gz PeerTube-4712081f2a5f48749cf125d729e78b926ab28d6d.tar.zst PeerTube-4712081f2a5f48749cf125d729e78b926ab28d6d.zip |
Server: add association between author and user
Diffstat (limited to 'server/initializers/checker.js')
-rw-r--r-- | server/initializers/checker.js | 4 |
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 | ||
44 | function clientsExist (callback) { | 44 | function 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 | ||