Adds missing confirm email after payment (#2353)

This commit is contained in:
Omar López 2022-04-02 07:30:07 -07:00 committed by GitHub
parent d997aef4f8
commit 966a5f30ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.`,