tfunction added
This commit is contained in:
@@ -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"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user