mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -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;
|
||||
}
|
||||
});
|
||||
}).then(() => {
|
||||
}).then(async () => {
|
||||
// NOTE: grouping by context because messages can contain unique data like "customer_id"
|
||||
const groupedErrors = _.groupBy(invalid.errors, 'context');
|
||||
const uniqueErrors = _.uniqBy(invalid.errors, 'context');
|
||||
|
@ -719,7 +719,7 @@ module.exports = {
|
|||
importSetLabels,
|
||||
createdBy
|
||||
});
|
||||
}).then((result) => {
|
||||
}).then(async (result) => {
|
||||
invalid.errors = invalid.errors.concat(result.invalid.errors);
|
||||
invalid.count += result.invalid.count;
|
||||
imported.count += result.imported.count;
|
||||
|
|
Loading…
Reference in a new issue