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 { try {
const users = await strapi.query('user', 'users-permissions').find({ const users = await strapi.query('user', 'users-permissions').find(strapi.utils.models.convertParams('user', {
where: { email: profile.email
email: { }));
symbol: '=',
value: profile.email
}
}
});
const advanced = await strapi.store({ const advanced = await strapi.store({
environment: '', environment: '',