fix: cannot update user email from admin (#1197)
This commit is contained in:
parent
1c814638da
commit
d356937660
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user