2
0
Files

10 lines
311 B
TypeScript
Raw Permalink Normal View History

2024-08-09 00:39:27 +02:00
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 || "";
}