From 5fa72b0512b00bdc6a1065b7b604c9640f469454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 20 Nov 2024 13:19:41 +0100 Subject: [PATCH] fix(core): Fix `diagnostics.enabled` default value (#11809) --- packages/@n8n/config/src/configs/diagnostics.config.ts | 2 +- packages/@n8n/config/test/config.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@n8n/config/src/configs/diagnostics.config.ts b/packages/@n8n/config/src/configs/diagnostics.config.ts index 58e4740b35..5ff6abf837 100644 --- a/packages/@n8n/config/src/configs/diagnostics.config.ts +++ b/packages/@n8n/config/src/configs/diagnostics.config.ts @@ -15,7 +15,7 @@ class PostHogConfig { export class DiagnosticsConfig { /** Whether diagnostics are enabled. */ @Env('N8N_DIAGNOSTICS_ENABLED') - enabled: boolean = false; + enabled: boolean = true; /** Diagnostics config for frontend. */ @Env('N8N_DIAGNOSTICS_CONFIG_FRONTEND') diff --git a/packages/@n8n/config/test/config.test.ts b/packages/@n8n/config/test/config.test.ts index 76402b5957..c5dc2a35b5 100644 --- a/packages/@n8n/config/test/config.test.ts +++ b/packages/@n8n/config/test/config.test.ts @@ -283,7 +283,7 @@ describe('GlobalConfig', () => { }, }, diagnostics: { - enabled: false, + enabled: true, frontendConfig: '1zPn9bgWPzlQc0p8Gj1uiK6DOTn;https://telemetry.n8n.io', backendConfig: '1zPn7YoGC3ZXE9zLeTKLuQCB4F6;https://telemetry.n8n.io', posthogConfig: {