20 lines
512 B
TypeScript
20 lines
512 B
TypeScript
import type { PrismaClient } from "@prisma/client";
|
|
|
|
import { samlTenantProduct } from "@calcom/features/ee/sso/lib/saml";
|
|
|
|
import type { TSamlTenantProductInputSchema } from "./samlTenantProduct.schema";
|
|
|
|
type SamlTenantProductOptions = {
|
|
ctx: {
|
|
prisma: PrismaClient;
|
|
};
|
|
input: TSamlTenantProductInputSchema;
|
|
};
|
|
|
|
export const samlTenantProductHandler = ({ ctx, input }: SamlTenantProductOptions) => {
|
|
const { prisma } = ctx;
|
|
const { email } = input;
|
|
|
|
return samlTenantProduct(prisma, email);
|
|
};
|