mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Some minor fixes on Segment-Node
This commit is contained in:
parent
de098f7da4
commit
828962deeb
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue