mirror of
https://github.com/strapi/strapi.git
synced 2025-10-09 07:13:14 +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.
|
* Promise to fetch a/an user.
|
||||||
* @return {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
fetch(params) {
|
fetch(params, populate) {
|
||||||
return strapi.query('user', 'users-permissions').findOne(params);
|
return strapi.query('user', 'users-permissions').findOne(params, populate);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user