fix: license key env type api-v2 (#15519)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user