Skip to content

Commit 856f1b4

Browse files
author
Phil Varner
committed
use allSettled
1 parent 00411ac commit 856f1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ingest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function updateLinksWithinRecord(record) {
188188
}
189189

190190
export async function publishResultsToSns(results, topicArn) {
191-
await Promise.all(results.map(async (result) => {
191+
await Promise.allSettled(results.map(async (result) => {
192192
if (result.record && !result.error) {
193193
updateLinksWithinRecord(result.record)
194194
}

0 commit comments

Comments
 (0)