Fixed bug following recommendation

This commit is contained in:
Paolo Ragone 2019-01-11 22:52:28 +13:00
parent b3ebf8e736
commit b6fc268297

View File

@ -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: '',