⚡ Some minor fixes on Segment-Node
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user