refactor: Upgrade license package version and create tenant id variable (no-changelog) (#4744)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user