diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/users.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index dcc4ef196..2342c23dd 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts | |||
@@ -303,6 +303,7 @@ async function updateMe (req: express.Request, res: express.Response, next: expr | |||
303 | await sequelizeTypescript.transaction(async t => { | 303 | await sequelizeTypescript.transaction(async t => { |
304 | await user.save({ transaction: t }) | 304 | await user.save({ transaction: t }) |
305 | 305 | ||
306 | if (body.displayName !== undefined) user.Account.name = body.displayName | ||
306 | if (body.description !== undefined) user.Account.description = body.description | 307 | if (body.description !== undefined) user.Account.description = body.description |
307 | await user.Account.save({ transaction: t }) | 308 | await user.Account.save({ transaction: t }) |
308 | 309 | ||