From b6013e7ddafe50ec4aea82aaa79c2363f2173a92 Mon Sep 17 00:00:00 2001 From: Cornelius Suermann Date: Tue, 19 Sep 2023 09:57:19 +0200 Subject: [PATCH] fix: Attempt license renewal when n8n starts (no-changelog) --- packages/cli/src/License.ts | 1 + packages/cli/test/unit/License.test.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/cli/src/License.ts b/packages/cli/src/License.ts index e9660be3f121b..bf384d0247329 100644 --- a/packages/cli/src/License.ts +++ b/packages/cli/src/License.ts @@ -57,6 +57,7 @@ export class License { tenantId: config.getEnv('license.tenantId'), productIdentifier: `n8n-${N8N_VERSION}`, autoRenewEnabled, + renewOnInit: autoRenewEnabled, autoRenewOffset, offlineMode, logger: this.logger, diff --git a/packages/cli/test/unit/License.test.ts b/packages/cli/test/unit/License.test.ts index f035e6d927381..b9f942e365080 100644 --- a/packages/cli/test/unit/License.test.ts +++ b/packages/cli/test/unit/License.test.ts @@ -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(),