n8n-nodes-idb2b 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -117,9 +117,11 @@ function buildContactRequestBody(data, includesPhone = true) {
|
|
|
117
117
|
if (data.name !== undefined) {
|
|
118
118
|
body.name = typeof data.name === "string" ? data.name.trim() : data.name;
|
|
119
119
|
}
|
|
120
|
-
if (data.email !== undefined) {
|
|
120
|
+
if (data.email !== undefined && data.email !== "") {
|
|
121
121
|
body.email =
|
|
122
122
|
typeof data.email === "string" ? data.email.trim() : data.email;
|
|
123
|
+
if (body.email === "")
|
|
124
|
+
delete body.email;
|
|
123
125
|
}
|
|
124
126
|
// Include phone if provided
|
|
125
127
|
if (includesPhone &&
|