diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-08-26 09:17:20 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-08-26 09:17:20 +0200 |
commit | 3482688cce11495b51970f680f375ed56deb4464 (patch) | |
tree | f2553e582b07298930dd5857667a5840dfe5ee67 /server/initializers/installer.ts | |
parent | c6720f0bf5ff3b28876d5f98eb09d1e83dbed39c (diff) | |
download | PeerTube-3482688cce11495b51970f680f375ed56deb4464.tar.gz PeerTube-3482688cce11495b51970f680f375ed56deb4464.tar.zst PeerTube-3482688cce11495b51970f680f375ed56deb4464.zip |
Fix config checker
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r-- | server/initializers/installer.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index 26e92be0b..43b5adfed 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts | |||
@@ -57,7 +57,7 @@ function createDirectoriesIfNotExist () { | |||
57 | } | 57 | } |
58 | 58 | ||
59 | function createOAuthClientIfNotExist () { | 59 | function createOAuthClientIfNotExist () { |
60 | return clientsExist().then(exist => { | 60 | return clientsExist(db.OAuthClient).then(exist => { |
61 | // Nothing to do, clients already exist | 61 | // Nothing to do, clients already exist |
62 | if (exist === true) return undefined | 62 | if (exist === true) return undefined |
63 | 63 | ||
@@ -82,7 +82,7 @@ function createOAuthClientIfNotExist () { | |||
82 | } | 82 | } |
83 | 83 | ||
84 | function createOAuthAdminIfNotExist () { | 84 | function createOAuthAdminIfNotExist () { |
85 | return usersExist().then(exist => { | 85 | return usersExist(db.User).then(exist => { |
86 | // Nothing to do, users already exist | 86 | // Nothing to do, users already exist |
87 | if (exist === true) return undefined | 87 | if (exist === true) return undefined |
88 | 88 | ||