aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/users
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/users')
-rw-r--r--server/controllers/api/users/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts
index 869f31d84..5ae0dc7a7 100644
--- a/server/controllers/api/users/index.ts
+++ b/server/controllers/api/users/index.ts
@@ -197,7 +197,7 @@ async function createUser (req: express.Request, res: express.Response) {
197 197
198 const { user, account, videoChannel } = await createUserAccountAndChannelAndPlaylist({ 198 const { user, account, videoChannel } = await createUserAccountAndChannelAndPlaylist({
199 userToCreate, 199 userToCreate,
200 channelNames: { name: body.channelName, displayName: body.channelName } 200 channelNames: body.channelName && { name: body.channelName, displayName: body.channelName }
201 }) 201 })
202 202
203 auditLogger.create(getAuditIdFromRes(res), new UserAuditView(user.toFormattedJSON())) 203 auditLogger.create(getAuditIdFromRes(res), new UserAuditView(user.toFormattedJSON()))