Skip to content

Commit

Permalink
fix: cannot update user email from admin (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Nov 17, 2019
1 parent 1c81463 commit d356937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/models/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ module.exports = class User extends Model {
const dupUsr = await WIKI.models.users.query().select('id').where({
email,
providerKey: usr.providerKey
})
}).first()
if (dupUsr) {
throw new WIKI.Error.AuthAccountAlreadyExists()
}
Expand Down

0 comments on commit d356937

Please sign in to comment.