From 1ea221e26f32a78b6b5ef86e73aa639d2bcef4e2 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Wed, 15 Feb 2023 10:45:41 +0530 Subject: [PATCH] Fix a lint errr --- apps/web/pages/booking/[uid].tsx | 2 +- packages/trpc/server/routers/viewer/eventTypes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/booking/[uid].tsx b/apps/web/pages/booking/[uid].tsx index 3fe7739025..425f10f7a4 100644 --- a/apps/web/pages/booking/[uid].tsx +++ b/apps/web/pages/booking/[uid].tsx @@ -1,4 +1,4 @@ -import { BookingStatus, WorkflowActions } from "@prisma/client"; +import { BookingStatus } from "@prisma/client"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@radix-ui/react-collapsible"; import classNames from "classnames"; import { createEvent } from "ics"; diff --git a/packages/trpc/server/routers/viewer/eventTypes.ts b/packages/trpc/server/routers/viewer/eventTypes.ts index 67594330d2..57660bb6f8 100644 --- a/packages/trpc/server/routers/viewer/eventTypes.ts +++ b/packages/trpc/server/routers/viewer/eventTypes.ts @@ -538,6 +538,7 @@ export const eventTypesRouter = router({ const data: Prisma.EventTypeUpdateInput = { ...rest, + bookingFields, metadata: rest.metadata === null ? Prisma.DbNull : rest.metadata, }; data.locations = locations ?? undefined; @@ -825,7 +826,6 @@ export const eventTypesRouter = router({ }); function ensureUniqueBookingFields(fields: z.infer["bookingFields"]) { - console.log("Ensure unique booking fields", fields); if (!fields) { return; }