Merge pull request #4774 from abdonrd/patch-1

Add populate option to the fetch user service
This commit is contained in:
Alexandre BODIN 2019-12-23 10:07:34 +01:00 committed by GitHub
commit 51be4546a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
},
/**