Update checkLicense.ts

pull/3545/head
zomars 2022-07-26 17:20:44 -06:00
parent 4212e6d619
commit 4b428d22de
1 changed files with 0 additions and 1 deletions

View File

@ -5,7 +5,6 @@ import { CONSOLE_URL } from "@calcom/lib/constants";
const CACHING_TIME = 86400000; // 24 hours in milliseconds
async function checkLicense(license: string): Promise<boolean> {
return true;
if (!!process.env.NEXT_PUBLIC_IS_E2E) return true;
const url = `${CONSOLE_URL}/api/license?key=${license}`;
const cachedResponse = cache.get(url);