tfunction added
parent
ef5bbfe4f9
commit
f1c98181d2
|
@ -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"
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue