2
0
Files
cal/calcom/packages/features/ee/deployment/lib/getDeploymentKey.ts
2024-08-09 00:39:27 +02:00

10 lines
311 B
TypeScript

import type { PrismaClient } from "@calcom/prisma";
export async function getDeploymentKey(prisma: PrismaClient) {
const deployment = await prisma.deployment.findUnique({
where: { id: 1 },
select: { licenseKey: true },
});
return deployment?.licenseKey || process.env.CALCOM_LICENSE_KEY || "";
}