diff options
author | kimsible <kimsible@users.noreply.github.com> | 2020-07-29 18:35:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-11 08:46:35 +0200 |
commit | 69db1470432a6db8ef6929ef3175af75f7aaa963 (patch) | |
tree | f03e8fdb5ef1b46916027987f5f6819410bb3bf9 /server | |
parent | 4e68fc8605bff02f4c79deafc24cb39779802d0d (diff) | |
download | PeerTube-69db1470432a6db8ef6929ef3175af75f7aaa963.tar.gz PeerTube-69db1470432a6db8ef6929ef3175af75f7aaa963.tar.zst PeerTube-69db1470432a6db8ef6929ef3175af75f7aaa963.zip |
Make channelName optionnal only for the API
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/api/users/index.ts | 2 |
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())) |