refactor: remove highperf endpoints (#23171)
* refactor: remove highperf endpoints * fix trpc function name * chore: remove isTeamEvent logic * chore: remove isTeamEvent at all * revert wrong change * Revert "chore: remove isTeamEvent at all" This reverts commit 6dbc8c31f16c40a7654a05240661d7892aa48bb8. * revert wrong change
This commit is contained in:
1 parent
79f1074f93
commit
f501ef3269
7 files changed
+5
-61
No files matched your search
@@ -136,13 +136,11 @@ export const useSchedule = ({
|
||||
eventTypeId: eventId ?? undefined,
|
||||
});
|
||||
|
||||
const schedule = isTeamEvent
|
||||
? trpc.viewer.highPerf.getTeamSchedule.useQuery(input, {
|
||||
...options,
|
||||
// Only enable if we're not using API V2
|
||||
enabled: options.enabled && !isCallingApiV2Slots,
|
||||
})
|
||||
: trpc.viewer.slots.getSchedule.useQuery(input, options);
|
||||
const schedule = trpc.viewer.slots.getSchedule.useQuery(input, {
|
||||
...options,
|
||||
// Only enable if we're not using API V2
|
||||
enabled: options.enabled && !isCallingApiV2Slots,
|
||||
});
|
||||
|
||||
if (isCallingApiV2Slots && !teamScheduleV2.failureReason) {
|
||||
updateEmbedBookerState({
|
||||
|
||||
Reference in new issue
Block a user