Some minor fixes on Segment-Node

This commit is contained in:
Jan Oberhauser 2020-01-23 16:40:39 -08:00
parent de098f7da4
commit 828962deeb
3 changed files with 9 additions and 19 deletions

View file

@ -72,7 +72,7 @@ export const identifyFields = [
values: [
{
displayName: 'Email',
name: 'emaiL',
name: 'email',
type: 'string',
default: '',
description: 'Email address of a user',

View file

@ -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;

View file

@ -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: 'Users birthday',
},
{
displayName: 'eventd At',
name: 'eventdAt',
displayName: 'Created At',
name: 'createdAt',
type: 'dateTime',
default: '',
description: 'Date the users account was first eventd',
description: 'Date the users 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: 'Users birthday',
},
{
displayName: 'eventd At',
name: 'eventdAt',
displayName: 'Created At',
name: 'createdAt',
type: 'dateTime',
default: '',
description: 'Date the users account was first eventd',
description: 'Date the users account was first created at',
},
{
displayName: 'Description',