Merge branch 'master' into local-upload-readme

This commit is contained in:
Rémi de Juvigny 2020-08-07 16:03:38 +02:00 committed by GitHub
commit 5fcbcaa2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ const emailTemplate = {
Your account is now linked with: <%= user.email %>.`,
html: `<h1>Welcome on mywebsite.fr!</h1>
<p>Your account is now linked with: <%= user.email %>.<p>`,
},
};
await strapi.plugins.email.services.email.sendTemplatedEmail(
{

View File

@ -212,7 +212,7 @@ const createAggregationFieldsResolver = function(model, fields, operation, typeC
* Correctly format the data returned by the group by
*/
const preProcessGroupByData = function({ result, fieldKey, filters }) {
const _result = _.toArray(result);
const _result = _.toArray(result).filter(value => Boolean(value._id));
return _.map(_result, value => {
return {
key: value._id.toString(),