fix(editor): Send template id as a number in telemetry events (#8484)

This commit is contained in:
Milorad FIlipović 2024-01-30 10:37:06 +01:00 committed by GitHub
parent 5cb55270b7
commit 327cc8df73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1094,7 +1094,7 @@ export const workflowHelpers = defineComponent({
const templateId = this.$route.query.templateId; const templateId = this.$route.query.templateId;
if (templateId) { if (templateId) {
this.$telemetry.track('User saved new workflow from template', { this.$telemetry.track('User saved new workflow from template', {
template_id: templateId, template_id: isNaN(+templateId) ? templateId : +templateId,
workflow_id: workflowData.id, workflow_id: workflowData.id,
wf_template_repo_session_id: this.templatesStore.previousSessionId, wf_template_repo_session_id: this.templatesStore.previousSessionId,
}); });

View file

@ -207,7 +207,7 @@ export const useSetupTemplateStore = defineStore('setupTemplate', () => {
); );
telemetry.track('User saved new workflow from template', { telemetry.track('User saved new workflow from template', {
template_id: templateId.value, template_id: isNaN(+templateId.value) ? templateId : +templateId.value,
workflow_id: createdWorkflow.id, workflow_id: createdWorkflow.id,
wf_template_repo_session_id: templatesStore.currentSessionId, wf_template_repo_session_id: templatesStore.currentSessionId,
}); });