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: [
|
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',
|
||||||
|
|
Loading…
Reference in a new issue