mirror of
https://github.com/strapi/strapi.git
synced 2025-08-30 03:33:37 +00:00
Fixed bug following recommendation
This commit is contained in:
parent
b3ebf8e736
commit
b6fc268297
@ -45,14 +45,9 @@ exports.connect = (provider, query) => {
|
||||
}
|
||||
|
||||
try {
|
||||
const users = await strapi.query('user', 'users-permissions').find({
|
||||
where: {
|
||||
email: {
|
||||
symbol: '=',
|
||||
value: profile.email
|
||||
}
|
||||
}
|
||||
});
|
||||
const users = await strapi.query('user', 'users-permissions').find(strapi.utils.models.convertParams('user', {
|
||||
email: profile.email
|
||||
}));
|
||||
|
||||
const advanced = await strapi.store({
|
||||
environment: '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user