aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/user.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/user.ts b/server/lib/user.ts
index 2ea7481e8..d019c4e71 100644
--- a/server/lib/user.ts
+++ b/server/lib/user.ts
@@ -5,6 +5,7 @@ import { AccountModel } from '../models/account/account'
5import { UserModel } from '../models/account/user' 5import { UserModel } from '../models/account/user'
6import { buildActorInstance, getAccountActivityPubUrl, setAsyncActorKeys } from './activitypub' 6import { buildActorInstance, getAccountActivityPubUrl, setAsyncActorKeys } from './activitypub'
7import { createVideoChannel } from './video-channel' 7import { createVideoChannel } from './video-channel'
8import { VideoChannelModel } from '../models/video/video-channel'
8 9
9async function createUserAccountAndChannel (userToCreate: UserModel, validateUser = true) { 10async function createUserAccountAndChannel (userToCreate: UserModel, validateUser = true) {
10 const { user, account, videoChannel } = await sequelizeTypescript.transaction(async t => { 11 const { user, account, videoChannel } = await sequelizeTypescript.transaction(async t => {
@@ -28,7 +29,7 @@ async function createUserAccountAndChannel (userToCreate: UserModel, validateUse
28 account.Actor = await setAsyncActorKeys(account.Actor) 29 account.Actor = await setAsyncActorKeys(account.Actor)
29 videoChannel.Actor = await setAsyncActorKeys(videoChannel.Actor) 30 videoChannel.Actor = await setAsyncActorKeys(videoChannel.Actor)
30 31
31 return { user, account, videoChannel } 32 return { user, account, videoChannel } as { user: UserModel, account: AccountModel, videoChannel: VideoChannelModel }
32} 33}
33 34
34async function createLocalAccountWithoutKeys ( 35async function createLocalAccountWithoutKeys (