refactor(core): Port license config (#11428)

This commit is contained in:
Iván Ovejero
2024-10-28 10:52:31 +01:00
committed by GitHub
parent cb7c4d29a6
commit 12d218ea38
10 changed files with 98 additions and 75 deletions

View File

@@ -274,7 +274,7 @@ export abstract class BaseCommand extends Command {
this.license = Container.get(License);
await this.license.init();
const activationKey = config.getEnv('license.activationKey');
const { activationKey } = this.globalConfig.license;
if (activationKey) {
const hasCert = (await this.license.loadCertStr()).length > 0;