Scheduling infrastructure for absolutely everyone.
Adds missing confirm email after payment (#2353)
Omar López966a5f30ec34
diff --git a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts b/apps/web/ee/pages/api/integrations/stripepayment/webhook.tsindex fbd2fc78931..2124797fc5c 100644--- a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts+++ b/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts@@ -10,6 +10,7 @@ import { CalendarEvent } from "@calcom/types/Calendar";import { IS_PRODUCTION } from "@lib/config/constants";import { HttpError as HttpCode } from "@lib/core/http/error";+import { sendScheduledEmails } from "@lib/emails/email-manager";import { getTranslation } from "@server/lib/i18n";@@ -126,6 +127,8 @@ async function handlePaymentSuccess(event: Stripe.Event) {});}+ await sendScheduledEmails({ ...evt });+throw new HttpCode({statusCode: 200,message: `Booking with id '${booking.id}' was paid and confirmed.`,