}
function createOAuthClientIfNotExist () {
- return clientsExist().then(exist => {
+ return clientsExist(db.OAuthClient).then(exist => {
// Nothing to do, clients already exist
if (exist === true) return undefined
}
function createOAuthAdminIfNotExist () {
- return usersExist().then(exist => {
+ return usersExist(db.User).then(exist => {
// Nothing to do, users already exist
if (exist === true) return undefined