diff --git a/apps/api/v2/src/config/app.ts b/apps/api/v2/src/config/app.ts index 12919c52bf..87db1b6645 100644 --- a/apps/api/v2/src/config/app.ts +++ b/apps/api/v2/src/config/app.ts @@ -17,7 +17,7 @@ const loadConfig = (): AppConfig => { }/v2`, keyPrefix: getEnv("API_KEY_PREFIX", "cal_"), licenseKey: getEnv("CALCOM_LICENSE_KEY", ""), - licenceKeyUrl: getEnv("GET_LICENSE_KEY_URL", "https://console.cal.com/api/license"), + licenseKeyUrl: getEnv("GET_LICENSE_KEY_URL", "https://console.cal.com/api/license"), }, db: { readUrl: getEnv("DATABASE_READ_URL"), diff --git a/apps/api/v2/src/config/type.ts b/apps/api/v2/src/config/type.ts index 9d55271021..ed08ad55a3 100644 --- a/apps/api/v2/src/config/type.ts +++ b/apps/api/v2/src/config/type.ts @@ -8,7 +8,7 @@ export type AppConfig = { url: string; keyPrefix: string; licenseKey: string; - licenceKeyUrl: string; + licenseKeyUrl: string; }; db: { readUrl: string; diff --git a/apps/api/v2/src/modules/deployments/deployments.service.ts b/apps/api/v2/src/modules/deployments/deployments.service.ts index 56c77c7ae0..361f901c93 100644 --- a/apps/api/v2/src/modules/deployments/deployments.service.ts +++ b/apps/api/v2/src/modules/deployments/deployments.service.ts @@ -33,7 +33,7 @@ export class DeploymentsService { if (!licenseKey) { return false; } - const licenseKeyUrl = this.configService.get("api.licenseKeyUrl"); + const licenseKeyUrl = this.configService.get("api.licenseKeyUrl") + `?key=${licenseKey}`; const cachedData = await this.redisService.redis.get(getLicenseCacheKey(licenseKey)); if (cachedData) { return (JSON.parse(cachedData) as LicenseCheckResponse)?.valid;