mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
bring back the sessionStarted call
This commit is contained in:
parent
0fa2e8ca85
commit
54243bb320
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue