* fix trpc session circle dep * fixes trpc session cirlce dep * fix relative imports * fix more imports to use types and not trpc * fix exports * Fixed types --------- Co-authored-by: Keith Williams <keithwillcode@gmail.com>
16 lines
442 B
TypeScript
16 lines
442 B
TypeScript
import { WebhookRepository } from "@calcom/lib/server/repository/webhook";
|
|
import type { TrpcSessionUser } from "@calcom/trpc/server/types";
|
|
|
|
import type { TGetInputSchema } from "./get.schema";
|
|
|
|
type GetOptions = {
|
|
ctx: {
|
|
user: NonNullable<TrpcSessionUser>;
|
|
};
|
|
input: TGetInputSchema;
|
|
};
|
|
|
|
export const getHandler = async ({ ctx: _ctx, input }: GetOptions) => {
|
|
return await WebhookRepository.findByWebhookId(input.webhookId);
|
|
};
|