mirror of
https://github.com/strapi/strapi.git
synced 2025-11-18 19:22:05 +00:00
Add populate option to the fetch user service
This commit is contained in:
parent
d6a00ccffd
commit
4620546d4c
@ -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