tfunction added

This commit is contained in:
Syed Ali Shahbaz
2022-06-10 13:30:43 +05:30
parent ef5bbfe4f9
commit f1c98181d2
+4 -1
View File
@@ -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"
}
},