mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Fix updates of username and email
This commit is contained in:
parent
778c64ca45
commit
e097a7a2e3
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ module.exports = {
|
|||
const values = _.pick(inputs, ['username']);
|
||||
|
||||
user = await sails.helpers.users
|
||||
.update(user, values, this.req)
|
||||
.updateOne(user, values, this.req)
|
||||
.intercept('usernameAlreadyInUse', () => Errors.USERNAME_ALREADY_IN_USE);
|
||||
|
||||
if (!user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue