mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Cleanup tests imports
This commit is contained in:
parent
0b2f03d371
commit
d175a6f7ab
27 changed files with 41 additions and 47 deletions
|
@ -17,10 +17,8 @@ async function createUserAccountAndChannel (userToCreate: UserModel, validateUse
|
|||
validate: validateUser
|
||||
}
|
||||
|
||||
const [ userCreated, accountCreated ] = await Promise.all([
|
||||
userToCreate.save(userOptions),
|
||||
createLocalAccountWithoutKeys(userToCreate.username, userToCreate.id, null, t)
|
||||
])
|
||||
const userCreated = await userToCreate.save(userOptions)
|
||||
const accountCreated = await createLocalAccountWithoutKeys(userCreated.username, userCreated.id, null, t)
|
||||
userCreated.Account = accountCreated
|
||||
|
||||
let channelName = userCreated.username + '_channel'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue