diff --git a/packages/lib/__tests__/buildCalEventFromBooking.test.ts b/packages/lib/__tests__/buildCalEventFromBooking.test.ts index d88a07c6df..a6dc6d0603 100644 --- a/packages/lib/__tests__/buildCalEventFromBooking.test.ts +++ b/packages/lib/__tests__/buildCalEventFromBooking.test.ts @@ -4,14 +4,14 @@ import dayjs from "@calcom/dayjs"; import { buildCalEventFromBooking } from "../buildCalEventFromBooking"; import { parseRecurringEvent } from "../isRecurringEvent"; -import { getTranslation } from "../server"; +import { getTranslation } from "../server/i18n"; // Mock dependencies vi.mock("../isRecurringEvent", () => ({ parseRecurringEvent: vi.fn(), })); -vi.mock("../server", () => ({ +vi.mock("../server/i18n", () => ({ getTranslation: vi.fn(), })); diff --git a/packages/lib/buildCalEventFromBooking.ts b/packages/lib/buildCalEventFromBooking.ts index 631353ce15..209d8bdb59 100644 --- a/packages/lib/buildCalEventFromBooking.ts +++ b/packages/lib/buildCalEventFromBooking.ts @@ -3,7 +3,7 @@ import type { Prisma } from "@prisma/client"; import dayjs from "@calcom/dayjs"; import { parseRecurringEvent } from "./isRecurringEvent"; -import { getTranslation } from "./server"; +import { getTranslation } from "./server/i18n"; type DestinationCalendar = { id: number; diff --git a/packages/lib/server/index.ts b/packages/lib/server/index.ts deleted file mode 100644 index af79762b4e..0000000000 --- a/packages/lib/server/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { defaultHandler } from "./defaultHandler"; -export { defaultResponder } from "./defaultResponder"; -export { getLuckyUser } from "./getLuckyUser"; -export { getServerErrorFromUnknown } from "./getServerErrorFromUnknown"; -export { getTranslation } from "./i18n"; -export { getDefaultLocations } from "./getDefaultLocations"; -export { default as perfObserver } from "./perfObserver"; -export { getRoutedUrl } from "./getRoutedUrl"; -export { getTeamMemberEmailForResponseOrContactUsingUrlQuery } from "./getTeamMemberEmailFromCrm";