Updates license checker URL

staging
zomars 2022-04-20 14:14:46 -06:00
parent a9a7d83c45
commit b2be2f68f5
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import cache from "memory-cache"; import cache from "memory-cache";
async function checkLicense(license: string): Promise<boolean> { async function checkLicense(license: string): Promise<boolean> {
const url = `https://cal.com/api/license?key=${license}`; const url = `${process.env.NEXT_PUBLIC_CONSOLE_URL}/api/license?key=${license}`;
const cachedResponse = cache.get(url); const cachedResponse = cache.get(url);
if (cachedResponse) { if (cachedResponse) {
return cachedResponse; return cachedResponse;