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.

Update invoice-payment-failed.tsx

Steven Tey1f15c3ccb546
diff --git a/apps/web/app/api/stripe/webhook/invoice-payment-failed.tsx b/apps/web/app/api/stripe/webhook/invoice-payment-failed.tsx
index f191dd7061..0b8af8bab5 100644
--- a/apps/web/app/api/stripe/webhook/invoice-payment-failed.tsx
+++ b/apps/web/app/api/stripe/webhook/invoice-payment-failed.tsx
@@ -52,7 +52,7 @@ export async function invoicePaymentFailed(event: Stripe.Event) {
return;
}
- await Promise.all(
+ await Promise.allSettled(
workspace.users.map(({ user }) =>
sendEmail({
email: user.email as string,