fix: Attempt license renewal when n8n starts (no-changelog) (#7204)

This change is needed so that the newly introduced floating licenses
will be attempted to be claimed when n8n starts up.
This commit is contained in:
Cornelius Suermann
2023-09-19 12:10:23 +02:00
committed by GitHub
parent cf776b8f17
commit 050ba706d3
2 changed files with 3 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ export class License {
tenantId: config.getEnv('license.tenantId'),
productIdentifier: `n8n-${N8N_VERSION}`,
autoRenewEnabled,
renewOnInit: autoRenewEnabled,
autoRenewOffset,
offlineMode,
logger: this.logger,

View File

@@ -32,6 +32,7 @@ describe('License', () => {
autoRenewEnabled: true,
autoRenewOffset: MOCK_RENEW_OFFSET,
offlineMode: false,
renewOnInit: true,
deviceFingerprint: expect.any(Function),
productIdentifier: `n8n-${N8N_VERSION}`,
logger: expect.anything(),
@@ -49,6 +50,7 @@ describe('License', () => {
autoRenewEnabled: false,
autoRenewOffset: MOCK_RENEW_OFFSET,
offlineMode: true,
renewOnInit: false,
deviceFingerprint: expect.any(Function),
productIdentifier: `n8n-${N8N_VERSION}`,
logger: expect.anything(),