diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-19 17:08:18 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-19 17:08:18 +0100 |
commit | d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e (patch) | |
tree | 1c313c3a3e0680101516dea3a787cd307006c76d /server/lib/user.ts | |
parent | 0b2f03d3712f438f67eccf86b67acd047284f9b4 (diff) | |
download | PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.gz PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.zst PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.zip |
Cleanup tests imports
Diffstat (limited to 'server/lib/user.ts')
-rw-r--r-- | server/lib/user.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/lib/user.ts b/server/lib/user.ts index acb883e23..29d6d087d 100644 --- a/server/lib/user.ts +++ b/server/lib/user.ts | |||
@@ -17,10 +17,8 @@ async function createUserAccountAndChannel (userToCreate: UserModel, validateUse | |||
17 | validate: validateUser | 17 | validate: validateUser |
18 | } | 18 | } |
19 | 19 | ||
20 | const [ userCreated, accountCreated ] = await Promise.all([ | 20 | const userCreated = await userToCreate.save(userOptions) |
21 | userToCreate.save(userOptions), | 21 | const accountCreated = await createLocalAccountWithoutKeys(userCreated.username, userCreated.id, null, t) |
22 | createLocalAccountWithoutKeys(userToCreate.username, userToCreate.id, null, t) | ||
23 | ]) | ||
24 | userCreated.Account = accountCreated | 22 | userCreated.Account = accountCreated |
25 | 23 | ||
26 | let channelName = userCreated.username + '_channel' | 24 | let channelName = userCreated.username + '_channel' |