perf: Fix slowest db query (#10842)

This commit is contained in:
Keith Williams
2023-08-18 17:36:57 +02:00
committed by GitHub
parent 40b0d57024
commit 201a9d9356
@@ -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)) {