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