Commit 216d3d24 by kashif ansari

fetching user datail with user id mapped with channel partner

1 parent b287e4eb
...@@ -181,7 +181,8 @@ const userPermissionExtension = (plugin) => { ...@@ -181,7 +181,8 @@ const userPermissionExtension = (plugin) => {
// Find the linked user next. // Find the linked user next.
const user = await strapi const user = await strapi
.query("plugin::users-permissions.user") .query("plugin::users-permissions.user")
.findOne({ id: channelPartner.user.id }); .findOne({where:{ id: channelPartner.user.id }});
if (!user || user.blocked) { if (!user || user.blocked) {
throw new ValidationError( throw new ValidationError(
"Unable to resolve user linked to channel partner." "Unable to resolve user linked to channel partner."
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!