bring back the sessionStarted call

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-10-21 18:09:12 +02:00
parent 0fa2e8ca85
commit 54243bb320
No known key found for this signature in database

View file

@ -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 () => {