mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
9d65de4b10
commit
45bca2b104
1 changed files with 2 additions and 2 deletions
|
@ -610,7 +610,7 @@ module.exports = {
|
||||||
invalid.count = invalid.count + 1;
|
invalid.count = invalid.count + 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).then(() => {
|
}).then(async () => {
|
||||||
// NOTE: grouping by context because messages can contain unique data like "customer_id"
|
// NOTE: grouping by context because messages can contain unique data like "customer_id"
|
||||||
const groupedErrors = _.groupBy(invalid.errors, 'context');
|
const groupedErrors = _.groupBy(invalid.errors, 'context');
|
||||||
const uniqueErrors = _.uniqBy(invalid.errors, 'context');
|
const uniqueErrors = _.uniqBy(invalid.errors, 'context');
|
||||||
|
@ -719,7 +719,7 @@ module.exports = {
|
||||||
importSetLabels,
|
importSetLabels,
|
||||||
createdBy
|
createdBy
|
||||||
});
|
});
|
||||||
}).then((result) => {
|
}).then(async (result) => {
|
||||||
invalid.errors = invalid.errors.concat(result.invalid.errors);
|
invalid.errors = invalid.errors.concat(result.invalid.errors);
|
||||||
invalid.count += result.invalid.count;
|
invalid.count += result.invalid.count;
|
||||||
imported.count += result.imported.count;
|
imported.count += result.imported.count;
|
||||||
|
|
Loading…
Add table
Reference in a new issue