mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(editor): Send template id as string in all telemetry events (#8498)
This commit is contained in:
committed by
GitHub
parent
839dd96c7d
commit
2aed788dc3
@@ -18,6 +18,7 @@ import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import { middleware } from '@/rbac/middleware';
|
||||
import type { RouteConfig, RouterMiddleware } from '@/types/router';
|
||||
import { initializeCore } from '@/init';
|
||||
import { tryToParseNumber } from '@/utils/typesUtils';
|
||||
|
||||
const ChangePasswordView = async () => await import('./views/ChangePasswordView.vue');
|
||||
const ErrorView = async () => await import('./views/ErrorView.vue');
|
||||
@@ -120,7 +121,9 @@ export const routes = [
|
||||
getProperties(route: RouteLocation) {
|
||||
const templatesStore = useTemplatesStore();
|
||||
return {
|
||||
template_id: route.params.id,
|
||||
template_id: tryToParseNumber(
|
||||
Array.isArray(route.params.id) ? route.params.id[0] : route.params.id,
|
||||
),
|
||||
wf_template_repo_session_id: templatesStore.currentSessionId,
|
||||
};
|
||||
},
|
||||
@@ -142,7 +145,9 @@ export const routes = [
|
||||
getProperties(route: RouteLocation) {
|
||||
const templatesStore = useTemplatesStore();
|
||||
return {
|
||||
template_id: route.params.id,
|
||||
template_id: tryToParseNumber(
|
||||
Array.isArray(route.params.id) ? route.params.id[0] : route.params.id,
|
||||
),
|
||||
wf_template_repo_session_id: templatesStore.currentSessionId,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user