Commit d3569376 authored by NGPixel's avatar NGPixel

fix: cannot update user email from admin (#1197)

parent 1c814638
...@@ -550,7 +550,7 @@ module.exports = class User extends Model { ...@@ -550,7 +550,7 @@ module.exports = class User extends Model {
const dupUsr = await WIKI.models.users.query().select('id').where({ const dupUsr = await WIKI.models.users.query().select('id').where({
email, email,
providerKey: usr.providerKey providerKey: usr.providerKey
}) }).first()
if (dupUsr) { if (dupUsr) {
throw new WIKI.Error.AuthAccountAlreadyExists() throw new WIKI.Error.AuthAccountAlreadyExists()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment