mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ 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