mirror of
https://github.com/strapi/strapi.git
synced 2025-10-07 14:26:26 +00:00
Merge pull request #4774 from abdonrd/patch-1
Add populate option to the fetch user service
This commit is contained in:
commit
51be4546a4
@ -45,8 +45,8 @@ module.exports = {
|
||||
* Promise to fetch a/an user.
|
||||
* @return {Promise}
|
||||
*/
|
||||
fetch(params) {
|
||||
return strapi.query('user', 'users-permissions').findOne(params);
|
||||
fetch(params, populate) {
|
||||
return strapi.query('user', 'users-permissions').findOne(params, populate);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user