import { getWebhookFeature } from "@calcom/features/di/webhooks/containers/webhook"; import type { TrpcSessionUser } from "@calcom/trpc/server/types"; import type { TGetInputSchema } from "./get.schema"; type GetOptions = { ctx: { user: NonNullable; }; input: TGetInputSchema; }; export const getHandler = async ({ ctx: _ctx, input }: GetOptions) => { const { repository: webhookRepository } = getWebhookFeature(); return await webhookRepository.findByWebhookId(input.webhookId); };