Skip to content

Commit

Permalink
Fix strapi#7252: fix relation name
Browse files Browse the repository at this point in the history
fix regression issue due to pull strapi#7204

Signed-off-by: Akash P <aksdevac@gmail.com>
Signed-off-by: Gil Fernandes <gil.fernandes@onepointltd.com>
  • Loading branch information
imaksp authored and onepointconsulting committed Aug 13, 2020
1 parent 1fa3e9f commit 1bbd1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/strapi-plugin-users-permissions/services/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = {
* @return {Promise}
*/
fetchAuthenticatedUser(id) {
return strapi.query('user', 'users-permissions').findOne({ id }, ['roles']);
return strapi.query('user', 'users-permissions').findOne({ id }, ['role']);
},

/**
Expand Down

0 comments on commit 1bbd1cd

Please sign in to comment.