refactor: Upgrade license package version and create tenant id variable (no-changelog) (#4744)

This commit is contained in:
Omar Ajoue
2022-11-28 17:39:34 +01:00
committed by GitHub
parent 8f6fd009b9
commit 540f6e0abd
4 changed files with 12 additions and 6 deletions

View File

@@ -103,7 +103,7 @@
"tsconfig-paths": "^3.14.1"
},
"dependencies": {
"@n8n_io/license-sdk": "^1.3.4",
"@n8n_io/license-sdk": "^1.6.0",
"@oclif/command": "^1.8.16",
"@oclif/core": "^1.16.4",
"@oclif/errors": "^1.3.6",

View File

@@ -47,7 +47,7 @@ export class License {
try {
this.manager = new LicenseManager({
server,
tenantId: 1,
tenantId: config.getEnv('license.tenantId'),
productIdentifier: `n8n-${version}`,
autoRenewEnabled,
autoRenewOffset,

View File

@@ -1013,5 +1013,11 @@ export const schema = {
env: 'N8N_LICENSE_ACTIVATION_KEY',
doc: 'Activation key to initialize license',
},
tenantId: {
format: Number,
default: 1,
env: 'N8N_LICENSE_TENANT_ID',
doc: 'Tenant id used by the license manager',
},
},
};