perf: Fix slowest db query (#10842)

pull/10740/head^2
Keith Williams 2023-08-18 17:36:57 +02:00 committed by GitHub
parent 40b0d57024
commit 201a9d9356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -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)) {