From 335ebb30c5e3df185cbac5c87c74d2a48bef4e4e Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Sat, 2 Sep 2023 15:24:38 +0530 Subject: [PATCH] Type fixes --- apps/web/test/utils/bookingScenario.ts | 3 ++- packages/core/EventManager.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/test/utils/bookingScenario.ts b/apps/web/test/utils/bookingScenario.ts index 3be3cd0ab5..5e32ad57fa 100644 --- a/apps/web/test/utils/bookingScenario.ts +++ b/apps/web/test/utils/bookingScenario.ts @@ -683,7 +683,7 @@ export function expectWorkflowToBeTriggered() { // TODO: Implement this. } -export function expectBookingToBeInDatabase(booking: Prisma.BookingCreateInput) { +export function expectBookingToBeInDatabase(booking: Partial) { const createBookingCalledWithArgs = prismaMock.booking.create.mock.calls[0]; expect(createBookingCalledWithArgs[0].data).toEqual(expect.objectContaining(booking)); } @@ -708,6 +708,7 @@ expect.extend({ toHaveEmail( testEmail: ReturnType[number], expectedEmail: { + //TODO: Support email HTML parsing to target specific elements htmlToContain?: string; to: string; } diff --git a/packages/core/EventManager.ts b/packages/core/EventManager.ts index 2d18831b16..a56648bcab 100644 --- a/packages/core/EventManager.ts +++ b/packages/core/EventManager.ts @@ -10,6 +10,7 @@ import { appKeysSchema as calVideoKeysSchema } from "@calcom/app-store/dailyvide import { getEventLocationTypeFromApp } from "@calcom/app-store/locations"; import { MeetLocationType } from "@calcom/app-store/locations"; import getApps from "@calcom/app-store/utils"; +import logger from "@calcom/lib/logger"; import prisma from "@calcom/prisma"; import { createdEventSchema } from "@calcom/prisma/zod-utils"; import type { NewCalendarEventType } from "@calcom/types/Calendar";