Fix issues on server start

This commit is contained in:
Chocobozzz
2017-11-14 10:57:56 +01:00
parent 1e1265b36c
commit e34c85e527
14 changed files with 96 additions and 65 deletions

View File

@@ -16,8 +16,9 @@ async function createUserAccountAndChannel (user: UserInstance, validateUser = t
const userCreated = await user.save(userOptions)
const accountCreated = await createLocalAccount(user.username, user.id, null, t)
const videoChannelName = `Default ${userCreated.username} channel`
const videoChannelInfo = {
name: `Default ${userCreated.username} channel`
name: videoChannelName
}
const videoChannel = await createVideoChannel(videoChannelInfo, accountCreated, t)