Updates license checker URL
parent
a9a7d83c45
commit
b2be2f68f5
|
@ -1,7 +1,7 @@
|
|||
import cache from "memory-cache";
|
||||
|
||||
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);
|
||||
if (cachedResponse) {
|
||||
return cachedResponse;
|
||||
|
|
Loading…
Reference in New Issue