Skip to content

Commit 1740e34

Browse files
perf: remove unused submitFeedback tRPC route to reduce type generation load (calcom#21418)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex@cal.com <me@alexvanandel.com>
1 parent 9e09066 commit 1740e34

3 files changed

Lines changed: 0 additions & 53 deletions

File tree

packages/trpc/server/routers/loggedInViewer/_router.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ import { ZNoShowInputSchema } from "./markNoShow.schema";
88
import { teamsAndUserProfilesQuery } from "./procedures/teamsAndUserProfilesQuery";
99
import { ZRemoveNotificationsSubscriptionInputSchema } from "./removeNotificationsSubscription.schema";
1010
import { ZRoutingFormOrderInputSchema } from "./routingFormOrder.schema";
11-
import { ZSubmitFeedbackInputSchema } from "./submitFeedback.schema";
1211

1312
type AppsRouterHandlerCache = {
1413
stripeCustomer?: typeof import("./stripeCustomer.handler").stripeCustomerHandler;
1514
eventTypeOrder?: typeof import("./eventTypeOrder.handler").eventTypeOrderHandler;
1615
routingFormOrder?: typeof import("./routingFormOrder.handler").routingFormOrderHandler;
17-
submitFeedback?: typeof import("./submitFeedback.handler").submitFeedbackHandler;
1816
teamsAndUserProfilesQuery?: typeof import("./teamsAndUserProfilesQuery.handler").teamsAndUserProfilesQuery;
1917
connectAndJoin?: typeof import("./connectAndJoin.handler").Handler;
2018
addSecondaryEmail?: typeof import("./addSecondaryEmail.handler").addSecondaryEmailHandler;
@@ -46,11 +44,6 @@ export const loggedInViewerRouter = router({
4644
return routingFormOrderHandler({ ctx, input });
4745
}),
4846

49-
//Comment for PR: eventTypePosition is not used anywhere
50-
submitFeedback: authedProcedure.input(ZSubmitFeedbackInputSchema).mutation(async ({ ctx, input }) => {
51-
const { submitFeedbackHandler } = await import("./submitFeedback.handler");
52-
return submitFeedbackHandler({ ctx, input });
53-
}),
5447
teamsAndUserProfilesQuery,
5548
connectAndJoin: authedProcedure.input(ZConnectAndJoinInputSchema).mutation(async ({ ctx, input }) => {
5649
const { Handler } = await import("./connectAndJoin.handler");

packages/trpc/server/routers/loggedInViewer/submitFeedback.handler.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/trpc/server/routers/loggedInViewer/submitFeedback.schema.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)