Add populate option to the fetch user service

This commit is contained in:
Abdón Rodríguez Davila 2019-12-19 18:58:46 +01:00 committed by GitHub
parent d6a00ccffd
commit 4620546d4c
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);
},
/**