Fix updates of username and email

This commit is contained in:
SimonTagne
2021-10-20 22:25:04 +02:00
committed by GitHub
parent 729e5dac5e
commit 31d314736a
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ module.exports = {
const values = _.pick(inputs, ['email']);
user = await sails.helpers.users
.update(user, values, this.req)
.updateOne(user, values, this.req)
.intercept('emailAlreadyInUse', () => Errors.EMAIL_ALREADY_IN_USE);
if (!user) {