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

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