Im trying to fix this but I can’t find a way
checkUser: async (strapi: Strapi, email: string) => {
const user = await strapi.db.query("plugin::users-permissions.user").findOne({
where: { email: email },
});
if (user) {
return true;
} else {
return false;
}
},
error:
{
"data": null,
"error": {
"status": 403,
"name": "Error",
"message": "Undefined attribute level operator email",
"details": {}
}
}
This topic has been created from a Discord post (1260933494042001510) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord