]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/installer.ts
Improve registration
[github/Chocobozzz/PeerTube.git] / server / initializers / installer.ts
index e14554ede5191c0df5376b2b2a67dcfbac0b83c0..cb58454cb650be3edcda509ea0353eda99797092 100644 (file)
@@ -146,7 +146,7 @@ async function createOAuthAdminIfNotExist () {
   }
   const user = new UserModel(userData)
 
-  await createUserAccountAndChannelAndPlaylist(user, undefined, validatePassword)
+  await createUserAccountAndChannelAndPlaylist({ userToCreate: user, channelNames: undefined, validateUser: validatePassword })
   logger.info('Username: ' + username)
   logger.info('User password: ' + password)
 }