File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const loadConfig = (): AppConfig => {
17
17
} /v2`,
18
18
keyPrefix : getEnv ( "API_KEY_PREFIX" , "cal_" ) ,
19
19
licenseKey : getEnv ( "CALCOM_LICENSE_KEY" , "" ) ,
20
- licenceKeyUrl : getEnv ( "GET_LICENSE_KEY_URL" , "https://console.cal.com/api/license" ) ,
20
+ licenseKeyUrl : getEnv ( "GET_LICENSE_KEY_URL" , "https://console.cal.com/api/license" ) ,
21
21
} ,
22
22
db : {
23
23
readUrl : getEnv ( "DATABASE_READ_URL" ) ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export type AppConfig = {
8
8
url : string ;
9
9
keyPrefix : string ;
10
10
licenseKey : string ;
11
- licenceKeyUrl : string ;
11
+ licenseKeyUrl : string ;
12
12
} ;
13
13
db : {
14
14
readUrl : string ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class DeploymentsService {
33
33
if ( ! licenseKey ) {
34
34
return false ;
35
35
}
36
- const licenseKeyUrl = this . configService . get ( "api.licenseKeyUrl" ) ;
36
+ const licenseKeyUrl = this . configService . get ( "api.licenseKeyUrl" ) + `?key= ${ licenseKey } ` ;
37
37
const cachedData = await this . redisService . redis . get ( getLicenseCacheKey ( licenseKey ) ) ;
38
38
if ( cachedData ) {
39
39
return ( JSON . parse ( cachedData ) as LicenseCheckResponse ) ?. valid ;
You can’t perform that action at this time.
0 commit comments