feat: usage base billed - license key check - move to private api (#15222)

Co-authored-by: Omar López <[email protected]>
This commit is contained in:
sean-brydonandOmar López authored and GitHub committed 2024-07-25 13:20:24 -07:00
1 parent 53c37a9ddf
commit e16662e655
16 files changed
+586 -59

No files matched your search

@@ -1,6 +1,8 @@
import * as crypto from "crypto";
import { z } from "zod";
import { CALCOM_PRIVATE_API_ROUTE } from "@calcom/lib/constants";
import type { TrpcSessionUser } from "../../../trpc";
import type { TCreateSelfHostedLicenseSchema } from "./createSelfHostedLicenseKey.schema";
@@ -49,7 +51,7 @@ const fetchWithSignature = async (
};
const createSelfHostedInstance = async ({ input, ctx }: GetOptions) => {
const privateApiUrl = process.env.CALCOM_PRIVATE_API_ROUTE;
const privateApiUrl = CALCOM_PRIVATE_API_ROUTE;
const signatureToken = process.env.CAL_SIGNATURE_TOKEN;
if (!privateApiUrl || !signatureToken) {