mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
Fix updates of username and email
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user