Avoid follow SQL conflicts
[oweals/peertube.git] / server / initializers / installer.ts
index 33970f0fae9195b4cc46c2e4107e93eb8956db7e..cb58454cb650be3edcda509ea0353eda99797092 100644 (file)
@@ -146,7 +146,7 @@ async function createOAuthAdminIfNotExist () {
   }
   const user = new UserModel(userData)
 
-  await createUserAccountAndChannelAndPlaylist(user, validatePassword)
+  await createUserAccountAndChannelAndPlaylist({ userToCreate: user, channelNames: undefined, validateUser: validatePassword })
   logger.info('Username: ' + username)
   logger.info('User password: ' + password)
 }