From 54243bb3205fa43e3972d8ebe5dd74c21a6552c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Mon, 21 Oct 2024 18:09:12 +0200 Subject: [PATCH] bring back the sessionStarted call --- packages/editor-ui/src/stores/settings.store.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor-ui/src/stores/settings.store.ts b/packages/editor-ui/src/stores/settings.store.ts index 321ed5b437..2f0c53b6e7 100644 --- a/packages/editor-ui/src/stores/settings.store.ts +++ b/packages/editor-ui/src/stores/settings.store.ts @@ -3,6 +3,7 @@ import Bowser from 'bowser'; import type { IUserManagementSettings, FrontendSettings } from '@n8n/api-types'; import * as publicApiApi from '@/api/api-keys'; +import * as eventsApi from '@/api/events'; import * as ldapApi from '@/api/ldap'; import * as settingsApi from '@/api/settings'; import { testHealthEndpoint } from '@/api/templates'; @@ -247,6 +248,9 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => { rootStore.setDefaultLocale(fetchedSettings.defaultLocale); rootStore.setBinaryDataMode(fetchedSettings.binaryDataMode); useVersionsStore().setVersionNotificationSettings(fetchedSettings.versionNotifications); + if (fetchedSettings.telemetry.enabled) { + void eventsApi.sessionStarted(rootStore.restApiContext); + } }; const initialize = async () => {