From 201a9d93569b551cde7cce4dcce12cb025099713 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Fri, 18 Aug 2023 17:36:57 +0200 Subject: [PATCH] perf: Fix slowest db query (#10842) --- .../routers/viewer/availability/schedule/get.handler.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts b/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts index 82c22c8ded..8883246cf5 100644 --- a/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts +++ b/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts @@ -30,13 +30,6 @@ export const getHandler = async ({ ctx, input }: GetOptions) => { name: true, availability: true, timeZone: true, - eventType: { - select: { - _count: true, - id: true, - eventName: true, - }, - }, }, }); if (!schedule || (schedule.userId !== user.id && !input.isManagedEventType)) {