Scheduling infrastructure for absolutely everyone.
tfunction added
Syed Ali Shahbazf1c98181d2da
diff --git a/pages/api/bookings/index.ts b/pages/api/bookings/index.tsindex a8eaf906627..f5748daf67d 100644--- a/pages/api/bookings/index.ts+++ b/pages/api/bookings/index.ts@@ -1,5 +1,6 @@-import type { NextApiRequest, NextApiResponse } from "next";+import { getTranslation } from "@calcom/lib/server/i18n";+import type { NextApiRequest, NextApiResponse } from "next";import prisma from "@calcom/prisma";import { WebhookTriggerEvents } from "@prisma/client";@@ -99,6 +100,7 @@ async function createOrlistAllBookings(error,}));+ const fallbackTfunction = await getTranslation("en", "common");const evt = {type: eventType?.title || booking.title,title: booking.title,@@ -112,6 +114,7 @@ async function createOrlistAllBookings(email: "",timeZone: "",language: {+ translate: fallbackTfunction,locale: "en"}},