perf: Fix slowest db query (#10842)
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)) {
|
||||
|
|
Loading…
Reference in New Issue