mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Sending 'Assistant session started event' to posthog (no-changelog) (#10500)
Co-authored-by: Shireen Missi <shireen@n8n.io>
This commit is contained in:
committed by
GitHub
parent
547a60642c
commit
0276323881
@@ -29,19 +29,15 @@ const close = () => {
|
||||
|
||||
const startNewSession = async () => {
|
||||
await assistantStore.initErrorHelper(props.data.context);
|
||||
telemetry.track(
|
||||
'User opened assistant',
|
||||
{
|
||||
source: 'error',
|
||||
task: 'error',
|
||||
has_existing_session: true,
|
||||
workflow_id: workflowsStore.workflowId,
|
||||
node_type: props.data.context.node.type,
|
||||
error: props.data.context.error,
|
||||
chat_session_id: assistantStore.currentSessionId,
|
||||
},
|
||||
{ withPostHog: true },
|
||||
);
|
||||
telemetry.track('User opened assistant', {
|
||||
source: 'error',
|
||||
task: 'error',
|
||||
has_existing_session: true,
|
||||
workflow_id: workflowsStore.workflowId,
|
||||
node_type: props.data.context.node.type,
|
||||
error: props.data.context.error,
|
||||
chat_session_id: assistantStore.currentSessionId,
|
||||
});
|
||||
close();
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user