mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add ability to update the user display name/description
This commit is contained in:
parent
d62cf3234c
commit
ed56ad1193
23 changed files with 215 additions and 19 deletions
|
@ -303,6 +303,7 @@ async function updateMe (req: express.Request, res: express.Response, next: expr
|
|||
await sequelizeTypescript.transaction(async t => {
|
||||
await user.save({ transaction: t })
|
||||
|
||||
if (body.displayName !== undefined) user.Account.name = body.displayName
|
||||
if (body.description !== undefined) user.Account.description = body.description
|
||||
await user.Account.save({ transaction: t })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue