mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
⚡ Some minor fixes on Segment-Node
This commit is contained in:
@@ -72,7 +72,7 @@ export const identifyFields = [
|
||||
values: [
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'emaiL',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Email address of a user',
|
||||
|
||||
@@ -323,11 +323,6 @@ export class Segment implements INodeType {
|
||||
} else {
|
||||
body.anonymousId = uuid();
|
||||
}
|
||||
if (userId) {
|
||||
body.userId = userId as string;
|
||||
} else {
|
||||
body.anonymousId = uuid();
|
||||
}
|
||||
if (traits) {
|
||||
if (traits.email) {
|
||||
body.traits!.email = traits.email as string;
|
||||
@@ -555,11 +550,6 @@ export class Segment implements INodeType {
|
||||
} else {
|
||||
body.anonymousId = uuid();
|
||||
}
|
||||
if (userId) {
|
||||
body.userId = userId as string;
|
||||
} else {
|
||||
body.anonymousId = uuid();
|
||||
}
|
||||
if (traits) {
|
||||
if (traits.email) {
|
||||
body.traits!.email = traits.email as string;
|
||||
|
||||
@@ -95,7 +95,7 @@ export const trackFields = [
|
||||
values: [
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'emaiL',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Email address of a user',
|
||||
@@ -164,11 +164,11 @@ export const trackFields = [
|
||||
description: 'User’s birthday',
|
||||
},
|
||||
{
|
||||
displayName: 'eventd At',
|
||||
name: 'eventdAt',
|
||||
displayName: 'Created At',
|
||||
name: 'createdAt',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Date the user’s account was first eventd',
|
||||
description: 'Date the user’s account was first created at',
|
||||
},
|
||||
{
|
||||
displayName: 'Description',
|
||||
@@ -642,7 +642,7 @@ export const trackFields = [
|
||||
values: [
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'emaiL',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Email address of a user',
|
||||
@@ -711,11 +711,11 @@ export const trackFields = [
|
||||
description: 'User’s birthday',
|
||||
},
|
||||
{
|
||||
displayName: 'eventd At',
|
||||
name: 'eventdAt',
|
||||
displayName: 'Created At',
|
||||
name: 'createdAt',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Date the user’s account was first eventd',
|
||||
description: 'Date the user’s account was first created at',
|
||||
},
|
||||
{
|
||||
displayName: 'Description',
|
||||
|
||||
Reference in New Issue
Block a user