Browse Source

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

NGPixel 5 năm trước cách đây
mục cha
commit
d356937660
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/models/users.js

+ 1 - 1
server/models/users.js

@@ -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()
         }