0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed linting for await statements

refs 9d65de4b10
This commit is contained in:
Nazar Gargol 2020-08-25 19:30:02 +12:00
parent 9d65de4b10
commit 45bca2b104

View file

@ -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;