Skip to content

Commit

Permalink
[Application Usage] Use Promise.allSettled during rollups
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Jan 7, 2021
1 parent 14df31b commit f6223f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function rollDailyData(logger: Logger, savedObjectsClient?: ISavedO
})),
{ overwrite: true }
);
await Promise.all(
await Promise.allSettled(
rawApplicationUsageTransactional.map(
({ id }) => savedObjectsClient.delete(SAVED_OBJECTS_TRANSACTIONAL_TYPE, id) // There is no bulkDelete :(
)
Expand Down

0 comments on commit f6223f3

Please sign in to comment.