diff options
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' |