Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

promise.allsettled

Steven Tey0e54940c6b4b
diff --git a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
index b7288ebc3f..9e175ba510 100644
--- a/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/confirm/confirm-payouts.ts
@@ -156,7 +156,7 @@ export async function confirmPayouts({
// Send emails to all the partners involved in the payouts if the payout method is ACH
// This is because ACH takes 4 business days to process, so we want to give partners a heads up
if (newInvoice && paymentMethod.type === "us_bank_account") {
- await Promise.all(
+ await Promise.allSettled(
payouts
.filter((payout) => payout.partner.email)
.map((payout) =>